Browse Source

fix checking for little endian on android and BSDs

Julius Pfrommer 9 years ago
parent
commit
921dce5b99
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/ua_config.h.in

+ 1 - 1
include/ua_config.h.in

@@ -90,7 +90,7 @@
 #  define le32toh(x) ENDIAN_LE32(x)
 #  define le64toh(x) ENDIAN_LE64(x)
 # endif
-# if ( __BYTE_ORDER != __LITTLE_ENDIAN )
+# if ( __BYTE_ORDER != __LITTLE_ENDIAN ) && (_BYTE_ORDER != _LITTLE_ENDIAN)
 #  define UA_NON_LITTLEENDIAN_ARCHITECTURE
 # endif
 #endif