From e8301e907b6d1b5663cfec8a27437dffdae0f3d0 Mon Sep 17 00:00:00 2001 From: Tom Hicks Date: Mon, 3 Jul 2006 06:10:27 -0400 Subject: [PATCH] Changed Fixed .bmp loading on big endian systems. Changed Fixed .tga loading on big endian systems. --- src/bmp.cpp | 5 +++++ src/bmp.h | 2 -- src/tga.h | 6 ------ 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/bmp.cpp b/src/bmp.cpp index 75e8bcb..a29cd76 100644 --- a/src/bmp.cpp +++ b/src/bmp.cpp @@ -19,7 +19,12 @@ //////////////////////////////////////////////////////////////////////////////// #include +#ifdef WIN32 +#include +#endif +#include #include "bmp.h" +#include "datatypes.h" #ifdef WIN32 #pragma warning(disable:4996) #endif diff --git a/src/bmp.h b/src/bmp.h index a2885fc..e555c39 100644 --- a/src/bmp.h +++ b/src/bmp.h @@ -1,8 +1,6 @@ #ifndef __bmp_h__ #define __bmp_h__ -#include "mygl.h" -#include "datatypes.h" #include "texture.h" namespace OpenArena{ diff --git a/src/tga.h b/src/tga.h index 083bb1e..8fa0805 100644 --- a/src/tga.h +++ b/src/tga.h @@ -4,14 +4,8 @@ #pragma comment(lib, "OpenGL32.lib") #ifdef WIN32 #include //I think this was only needed because gl.h uses it -#include #endif -#ifdef __linux #include -#endif -#ifdef __APPLE__ -#include -#endif #include #include #include "texture.h"