Include stdlib.h in SDL path, needed by Emscripten
authorEthan Lee <flibitijibibo@flibitijibibo.com>
Fri, 22 May 2020 14:17:09 -0400
changeset 1257 deb563aadfa0
parent 1256 213b2cb6fd46
child 1258 077de213154d
Include stdlib.h in SDL path, needed by Emscripten
mojoshader_internal.h
--- a/mojoshader_internal.h	Thu May 21 16:33:35 2020 -0400
+++ b/mojoshader_internal.h	Fri May 22 14:17:09 2020 -0400
@@ -12,8 +12,11 @@
 #include <SDL_assert.h>
 #include <SDL_stdinc.h>
 #include <math.h> /* Needed for isinf/isnan :( */
+
+/* FIXME: These includes are needed for alloca :( */
+#include <stdlib.h>
 #ifndef __APPLE__
-#include <malloc.h> /* Needed for alloca :( */
+#include <malloc.h>
 #endif
 
 /* stdint.h */