From 3debd1554b39a6a2e790526fa02d56d1b81fda85 Mon Sep 17 00:00:00 2001 From: Duane Bailey Date: Sat, 17 Sep 2005 21:35:26 +0000 Subject: 2005-09-17 Duane Bailey * src/net/messagin.cpp, src/net/messageout.cpp, src/net/network.cpp: removed replaced MACOSX defines with big endian defines * src/graphics.cpp, src/graphics.h: added screenshot method * src/game.cpp: added code, so that when one presses 'alt-p' (for picture), it takes a screenshot and saves it to a png * src/Makefile.am, config.ac: added png library stuff --- src/net/messagein.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/net/messagein.cpp') diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp index c7760c82..77f6a54f 100644 --- a/src/net/messagein.cpp +++ b/src/net/messagein.cpp @@ -25,7 +25,7 @@ #include #include -#ifdef MACOSX +#ifdef SDL_BYTEORDER == SDL_BIG_ENDIAN #include "win2mac.h" #endif @@ -55,7 +55,7 @@ MessageIn::readShort() { assert(mPos + 2 <= mLength); mPos += 2; -#ifdef MACOSX +#ifdef 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 MACOSX +#ifdef SDL_BYTEORDER == SDL_BIG_ENDIAN return DR_SwapFourBytes(*(long*)(mData + (mPos - 4))); #else return (*(long*)(mData + (mPos - 4))); -- cgit v1.2.3-70-g09d2