summaryrefslogtreecommitdiff
path: root/src/net/messageout.cpp
diff options
context:
space:
mode:
authorDuane Bailey <nayryeliab@gmail.com>2005-09-22 23:28:58 +0000
committerDuane Bailey <nayryeliab@gmail.com>2005-09-22 23:28:58 +0000
commit6e383d8867081d3ec6b57b4d2f171a4382e83195 (patch)
tree3c658e7e8068f7f0a13c8434dd1fac0e47b43ab1 /src/net/messageout.cpp
parent59796855784a34e35d09c5cb3750dd5a9b421c10 (diff)
downloadmana-client-6e383d8867081d3ec6b57b4d2f171a4382e83195.tar.gz
mana-client-6e383d8867081d3ec6b57b4d2f171a4382e83195.tar.bz2
mana-client-6e383d8867081d3ec6b57b4d2f171a4382e83195.tar.xz
mana-client-6e383d8867081d3ec6b57b4d2f171a4382e83195.zip
removed win2mac support
Diffstat (limited to 'src/net/messageout.cpp')
-rw-r--r--src/net/messageout.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/net/messageout.cpp b/src/net/messageout.cpp
index 77819b63..d627d151 100644
--- a/src/net/messageout.cpp
+++ b/src/net/messageout.cpp
@@ -25,9 +25,7 @@
#include <string>
#include <SDL.h>
-#if SDL_BYTEORDER == SDL_BIG_ENDIAN
-#include "win2mac.h"
-#endif
+#include <SDL_endian.h>
#include "network.h"
#include "packet.h"
@@ -71,7 +69,7 @@ void MessageOut::writeShort(short value)
{
expand(mPos + sizeof(short));
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
- (*(short *)(mData + mPos)) = DR_SwapTwoBytes(value);
+ (*(short *)(mData + mPos)) = SDL_Swap16(value);
#else
(*(short *)(mData + mPos)) = value;
#endif
@@ -83,7 +81,7 @@ void MessageOut::writeLong(long value)
{
expand(mPos + sizeof(long));
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
- (*(long *)(mData + mPos)) = DR_SwapFourBytes(value);
+ (*(long *)(mData + mPos)) = SDL_Swap16(value);
#else
(*(long *)(mData + mPos)) = value;
#endif