aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index 68c7abbc6..b19621af1 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -78,4 +78,19 @@
78# endif 78# endif
79#endif 79#endif
80 80
81/* ---- Endian Detection ------------------------------------ */
82#ifndef __APPLE__
83 #include <byteswap.h>
84 #include <endian.h>
85#endif
86
87#ifdef __BIG_ENDIAN__
88 #define BB_BIG_ENDIAN 1
89#elif __BYTE_ORDER == __BIG_ENDIAN
90 #define BB_BIG_ENDIAN 1
91#else
92 #define BB_BIG_ENDIAN 0
93#endif
94
95
81#endif /* platform.h */ 96#endif /* platform.h */