Explorar o código

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

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