From f561cc050d668a90ad78095ba13c77a348524c1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mari=C3=A1n=20Kon=C4=8Dek?= Date: Wed, 13 Aug 2025 00:38:42 +0200 Subject: [PATCH] Extend detection of little-endianness --- netcode.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netcode.h b/netcode.h index 546310a..a5525b1 100755 --- a/netcode.h +++ b/netcode.h @@ -38,7 +38,8 @@ #error Can only define one of debug & release #endif -#if defined(__386__) || defined(i386) || defined(__i386__) \ +#if __LITTLE_ENDIAN__ \ + || defined(__386__) || defined(i386) || defined(__i386__) \ || defined(__X86) || defined(_M_IX86) \ || defined(_M_X64) || defined(__x86_64__) \ || defined(alpha) || defined(__alpha) || defined(__alpha__) \