Skip to content

Commit f561cc0

Browse files
committed
Extend detection of little-endianness
1 parent 65cec9f commit f561cc0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

netcode.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
#error Can only define one of debug & release
3939
#endif
4040

41-
#if defined(__386__) || defined(i386) || defined(__i386__) \
41+
#if __LITTLE_ENDIAN__ \
42+
|| defined(__386__) || defined(i386) || defined(__i386__) \
4243
|| defined(__X86) || defined(_M_IX86) \
4344
|| defined(_M_X64) || defined(__x86_64__) \
4445
|| defined(alpha) || defined(__alpha) || defined(__alpha__) \

0 commit comments

Comments
 (0)