From eac8cfbaf843a8b844c56e113844f01cc96bdcc4 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Fri, 22 May 2020 14:17:09 -0400 Subject: [PATCH] Include stdlib.h in SDL path, needed by Emscripten --- mojoshader_internal.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mojoshader_internal.h b/mojoshader_internal.h index db8cfce7..7b3aec1d 100644 --- a/mojoshader_internal.h +++ b/mojoshader_internal.h @@ -12,8 +12,11 @@ #include #include #include /* Needed for isinf/isnan :( */ + +/* FIXME: These includes are needed for alloca :( */ +#include #ifndef __APPLE__ -#include /* Needed for alloca :( */ +#include #endif /* stdint.h */