Skip to content

Commit

Permalink
Include stdlib.h in SDL path, needed by Emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed May 22, 2020
1 parent 5b3b7a7 commit eac8cfb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mojoshader_internal.h
Expand Up @@ -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 */
Expand Down

0 comments on commit eac8cfb

Please sign in to comment.