diff options
Diffstat (limited to 'src/common/mac/include/features.h')
-rw-r--r-- | src/common/mac/include/features.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/common/mac/include/features.h b/src/common/mac/include/features.h new file mode 100644 index 00000000..2020c482 --- /dev/null +++ b/src/common/mac/include/features.h @@ -0,0 +1,16 @@ +// This file is included by third_party/glibc/elf/elf.h +// We use it to map a couple of glibc specific macros +// over to their OS X equivalents. + + +// Map GNU endianness macros over to OS X endianness macros. + +#ifndef __LITTLE_ENDIAN + #define __LITTLE_ENDIAN __ORDER_LITTLE_ENDIAN__ +#endif +#ifndef __BIG_ENDIAN + #define __BIG_ENDIAN __ORDER_BIG_ENDIAN__ +#endif +#ifndef __BYTE_ORDER + #define __BYTE_ORDER __BYTE_ORDER__ +#endif |