Fix MSVC builds

This commit is contained in:
Cameron Gutman committed 2021-04-17 22:44:47 -05:00
1 parent 873fc6f837
commit bced126fdb
1 file changed
+1 -1
+1 -1
View File
@@ -80,7 +80,7 @@
#error Please define your platform byteswap macros! #error Please define your platform byteswap macros!
#endif #endif
#if (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) || defined(__BIG_ENDIAN__) #if (defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)) || defined(__BIG_ENDIAN__)
#define LE16(x) BSWAP16(x) #define LE16(x) BSWAP16(x)
#define LE32(x) BSWAP32(x) #define LE32(x) BSWAP32(x)
#define LE64(x) BSWAP64(x) #define LE64(x) BSWAP64(x)