Explorar o código

fix checking for little endian on android and BSDs

Julius Pfrommer %!s(int64=9) %!d(string=hai) anos
pai
achega
921dce5b99
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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