Forráskód Böngészése

workaround for androud compilation due to no activity, fixes #507

Stasik0 9 éve
szülő
commit
8400be7771
1 módosított fájl, 1 hozzáadás és 2 törlés
  1. 1 2
      include/ua_config.h.in

+ 1 - 2
include/ua_config.h.in

@@ -46,8 +46,7 @@
 // UA_NON_LITTLEENDIAN_ARCHITECTURE disables memcpying integer arrays directly
 // onto the message buffer. UA_MIXED_ENDIAN enables special encoding for floats
 // and doubles. Otherwise, they are endianness-switched similar to integers.
-
-#if defined(__LITTLE_ENDIAN__) || defined(_WIN32) || (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
+#if defined(__LITTLE_ENDIAN__) || defined(_WIN32) || (!defined(__ANDROID__) && BYTE_ORDER == ORDER_LITTLE_ENDIAN)
 # define htole16(x) (x)
 # define htole32(x) (x)
 # define htole64(x) (x)