From 794180c598c34969c7320e7e5c72677b2fddac0b Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Tue, 19 Apr 2016 19:04:02 +0200 Subject: [PATCH] bswap_32() is a linuxism, use inline code instead. bswap_32() is a function specific to Linux, unavailable on FreeBSD and OS X. Instead of messing with other platform specific functions, #ifdef and so on provide a fast inline implementation. --- Sources/Engine/Graphics/Fog.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Sources/Engine/Graphics/Fog.cpp b/Sources/Engine/Graphics/Fog.cpp index 69ee670..d085729 100644 --- a/Sources/Engine/Graphics/Fog.cpp +++ b/Sources/Engine/Graphics/Fog.cpp @@ -25,9 +25,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include #include -#ifdef USE_PORTABLE_C -# include -#endif // asm shortcuts #define O offset @@ -75,7 +72,8 @@ ULONG PrepareTexture( UBYTE *pubTexture, PIX pixSizeI, PIX pixSizeJ) DWORD* dst = (DWORD*)(pubTexture+pixTextureSize); for (int i=0; i> 8) & 0x0000ff00 ) | ((tmp >> 24) & 0x000000ff ); src++; dst++; }