1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Set appropriate host defines for building under emscripten

Emscripten has emulations for several headers found on Linux,
including spwan.h and endian.h

Differential Revision: https://reviews.llvm.org/D82121
This commit is contained in:
Derek Schuff 2020-06-18 13:06:51 -07:00
parent fd3d8e7901
commit 6d77450d76

View File

@ -21,7 +21,8 @@
#include <stdlib.h>
#endif
#if defined(__linux__) || defined(__GNU__) || defined(__HAIKU__)
#if defined(__linux__) || defined(__GNU__) || defined(__HAIKU__) || \
defined(__EMSCRIPTEN__)
#include <endian.h>
#elif defined(_AIX)
#include <sys/machine.h>