summaryrefslogtreecommitdiffstats
path: root/common/arch.h
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2007-12-16 09:34:59 +0000
committerjsorg71 <jsorg71>2007-12-16 09:34:59 +0000
commitd1c38424168ea6380a3de485cde40ea0f86d8538 (patch)
tree0defc1b4fa2f9f29b2bb0cc63798654f5dfa88ee /common/arch.h
parenta3202aea6acdd346c8ad0383b827c4d677e97fcb (diff)
downloadxrdp-proprietary-d1c38424168ea6380a3de485cde40ea0f86d8538.tar.gz
xrdp-proprietary-d1c38424168ea6380a3de485cde40ea0f86d8538.zip
check if __BYTE_ORDER is defined
Diffstat (limited to 'common/arch.h')
-rw-r--r--common/arch.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/arch.h b/common/arch.h
index 74789bce..6c61f99b 100644
--- a/common/arch.h
+++ b/common/arch.h
@@ -27,11 +27,16 @@
/* check endianess */
#if defined(__sparc__) || defined(__PPC__) || defined(__ppc__)
#define B_ENDIAN
-#elif __BYTE_ORDER == __LITTLE_ENDIAN
+#elif defined(__BYTE_ORDER)
+#if __BYTE_ORDER == __LITTLE_ENDIAN
#define L_ENDIAN
#elif __BYTE_ORDER == __BIG_ENDIAN
#define B_ENDIAN
#endif
+#else
+#define L_ENDIAN
+#endif
+
/* check if we need to align data */
#if defined(__sparc__) || defined(__alpha__) || defined(__hppa__) || \
defined(__AIX__) || defined(__PPC__) || defined(__mips__) || \