diff options
Diffstat (limited to 'src/net/network.cpp')
-rw-r--r-- | src/net/network.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/network.cpp b/src/net/network.cpp index 4656a233..e5a0dead 100644 --- a/src/net/network.cpp +++ b/src/net/network.cpp @@ -30,7 +30,7 @@ #include "messagein.h" #include "../log.h" -#ifdef MACOSX +#ifdef SDL_BYTEORDER == SDL_BIG_ENDIAN #include "win2mac.h" #endif @@ -247,7 +247,7 @@ void flush() unsigned short readWord(int pos) { -#ifdef MACOSX +#ifdef SDL_BYTEORDER == SDL_BIG_ENDIAN return DR_SwapTwoBytes((*(unsigned short*)(in+(pos)))); #else return (*(unsigned short *)(in+(pos))); |