diff --git a/public/tier0/platform.h b/public/tier0/platform.h index 33811494..33362f54 100644 --- a/public/tier0/platform.h +++ b/public/tier0/platform.h @@ -766,9 +766,11 @@ inline T DWordSwapAsm( T dw ) // The typically used methods. //------------------------------------- -#if defined(__i386__) && !defined LITTLE_ENDIAN +#if !defined LITTLE_ENDIAN +#if defined(__i386__) || defined(_M_IX86) || defined(_M_X64) #define LITTLE_ENDIAN 1 #endif +#endif #if (defined( _SGI_SOURCE ) || defined( _X360 )) && !defined BIG_ENDIAN #define BIG_ENDIAN 1