summaryrefslogtreecommitdiff
path: root/src/net/win2mac.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/win2mac.cpp')
-rw-r--r--src/net/win2mac.cpp14
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;
}
-*/