diff options
author | Duane Bailey <nayryeliab@gmail.com> | 2005-09-17 21:57:05 +0000 |
---|---|---|
committer | Duane Bailey <nayryeliab@gmail.com> | 2005-09-17 21:57:05 +0000 |
commit | bda21b100542279c7a58d1dd25ff6e3acda3d66c (patch) | |
tree | 16c1d4c612709093f84581431afde14d11173d93 /src/net/messagein.cpp | |
parent | 3debd1554b39a6a2e790526fa02d56d1b81fda85 (diff) | |
download | mana-bda21b100542279c7a58d1dd25ff6e3acda3d66c.tar.gz mana-bda21b100542279c7a58d1dd25ff6e3acda3d66c.tar.bz2 mana-bda21b100542279c7a58d1dd25ff6e3acda3d66c.tar.xz mana-bda21b100542279c7a58d1dd25ff6e3acda3d66c.zip |
2005-09-17 Duane Bailey <nayryeliab@gmail.com>
* src/netmessagein.cpp, src/net/messageout.cpp, src/net/network.cpp:
changed ifdefs to ifs
Diffstat (limited to 'src/net/messagein.cpp')
-rw-r--r-- | src/net/messagein.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp index 77f6a54f..c4d933cc 100644 --- a/src/net/messagein.cpp +++ b/src/net/messagein.cpp @@ -25,7 +25,7 @@ #include <cassert> #include <SDL_net.h> -#ifdef SDL_BYTEORDER == SDL_BIG_ENDIAN +#if SDL_BYTEORDER == SDL_if SDL_BYTEORDER == SDL_BIG_ENDIAN_ENDIAN #include "win2mac.h" #endif @@ -55,7 +55,7 @@ MessageIn::readShort() { assert(mPos + 2 <= mLength); mPos += 2; -#ifdef SDL_BYTEORDER == SDL_BIG_ENDIAN +#if SDL_BYTEORDER == SDL_BIG_ENDIAN return DR_SwapTwoBytes(*(short*)(mData + (mPos - 2))); #else return (*(short*)(mData + (mPos - 2))); @@ -67,7 +67,7 @@ MessageIn::readLong() { assert(mPos + 4 <= mLength); mPos += 4; -#ifdef SDL_BYTEORDER == SDL_BIG_ENDIAN +#if SDL_BYTEORDER == SDL_BIG_ENDIAN return DR_SwapFourBytes(*(long*)(mData + (mPos - 4))); #else return (*(long*)(mData + (mPos - 4))); |