diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-09-13 22:56:29 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-09-13 22:56:29 +0000 |
commit | 3dc311a652d1fda1252903a974920395e56e5668 (patch) | |
tree | 7098d55015d28a4d973c5073d7c9e45ae03ec400 /src/net/win2mac.cpp | |
parent | 78771718bf7af14273d7bb0090dccff97b00b397 (diff) | |
download | mana-client-3dc311a652d1fda1252903a974920395e56e5668.tar.gz mana-client-3dc311a652d1fda1252903a974920395e56e5668.tar.bz2 mana-client-3dc311a652d1fda1252903a974920395e56e5668.tar.xz mana-client-3dc311a652d1fda1252903a974920395e56e5668.zip |
Merged with SDL_NET_TEST branch.
Diffstat (limited to 'src/net/win2mac.cpp')
-rw-r--r-- | src/net/win2mac.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/net/win2mac.cpp b/src/net/win2mac.cpp index 6ddc59cc..d6da2cf2 100644 --- a/src/net/win2mac.cpp +++ b/src/net/win2mac.cpp @@ -1,5 +1,7 @@ #include "win2mac.h" +#define SWAP( a, b ) { char c; c=a; a=b; b=c; } + UInt32 DR_SwapFourBytes(UInt32 dw) { UInt32 tmp; @@ -21,15 +23,9 @@ UInt16 DR_SwapTwoBytes(UInt16 w) char* SwapChar(char charlist[]) { for (int i = 0; i < 24 / 2; i++) - SWAP(charlist[i],charlist[24 - i]); - return charlist; -} + { + SWAP(charlist[i], charlist[24 - i]); + } -/* -char* SwapChar(char charlist[]) -{ - for (int i = 0; i < sizeof(charlist) * 4 / 2; i++) - SWAP(charlist[i],charlist[sizeof(charlist) * 4 - i]); return charlist; } -*/ |