Add support for Emscripten to the compiler.

This commit is contained in:
Asher Baker
2014-08-15 16:32:00 +00:00
parent 17683249fd
commit 46123d359f
6 changed files with 44 additions and 16 deletions

View File

@@ -31,7 +31,11 @@
* For Linux, we must overrule these settings with those defined in glibc.
*/
#if !defined __BYTE_ORDER
# include <stdlib.h>
# if defined EMSCRIPTEN
# include <endian.h>
# else
# include <stdlib.h>
# endif
# if defined __APPLE__
# include <sys/types.h>
# define __BYTE_ORDER BYTE_ORDER