forked from OSchip/llvm-project
[SystemZ/ZOS] Define Endian constants for z/OS.
This is needed to build LLVM on z/OS, as there is no header file which provides these constants. Reviewed By: hubert.reinterpretcast Differential Revision: https://reviews.llvm.org/D82368
This commit is contained in:
parent
5d7afe2d2e
commit
0663844b06
|
@ -36,6 +36,10 @@
|
|||
#else
|
||||
#define BYTE_ORDER LITTLE_ENDIAN
|
||||
#endif
|
||||
#elif defined(__MVS__)
|
||||
#define BIG_ENDIAN 4321
|
||||
#define LITTLE_ENDIAN 1234
|
||||
#define BYTE_ORDER BIG_ENDIAN
|
||||
#else
|
||||
#if !defined(BYTE_ORDER) && !defined(_WIN32)
|
||||
#include <machine/endian.h>
|
||||
|
|
Loading…
Reference in New Issue