summaryrefslogtreecommitdiff
path: root/src/net/network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/network.cpp')
-rw-r--r--src/net/network.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/net/network.cpp b/src/net/network.cpp
index 7a3ecc09..d5a6579b 100644
--- a/src/net/network.cpp
+++ b/src/net/network.cpp
@@ -30,9 +30,6 @@
#include "messagein.h"
#include "../log.h"
-#if SDL_BYTEORDER == SDL_BIG_ENDIAN
-#include "win2mac.h"
-#endif
/** Warning: buffers and other variables are shared,
so there can be only one connection active at a time */
@@ -248,7 +245,7 @@ void flush()
unsigned short readWord(int pos)
{
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
- return DR_SwapTwoBytes((*(unsigned short*)(in+(pos))));
+ return SDL_Swap16((*(unsigned short*)(in+(pos))));
#else
return (*(unsigned short *)(in+(pos)));
#endif