From 2c6df55a9430612f3d0e6f0c4bedaa7752e4bd20 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 26 Aug 2013 20:05:52 +0300 Subject: fix compilation warnings with sdl2. --- src/resources/image.h | 2 ++ src/resources/openglimagehelper.h | 2 ++ src/resources/subimage.h | 2 ++ 3 files changed, 6 insertions(+) (limited to 'src/resources') diff --git a/src/resources/image.h b/src/resources/image.h index a40f62dee..7cdb1b5b3 100644 --- a/src/resources/image.h +++ b/src/resources/image.h @@ -35,7 +35,9 @@ #ifdef ANDROID #include #else +#ifndef USE_SDL2 #define GL_GLEXT_PROTOTYPES 1 +#endif #include #endif #endif diff --git a/src/resources/openglimagehelper.h b/src/resources/openglimagehelper.h index e19c5e735..254edde9d 100644 --- a/src/resources/openglimagehelper.h +++ b/src/resources/openglimagehelper.h @@ -43,7 +43,9 @@ #include #define GL_RGBA8 GL_RGBA8_OES #else +#ifndef USE_SDL2 #define GL_GLEXT_PROTOTYPES 1 +#endif #include #endif diff --git a/src/resources/subimage.h b/src/resources/subimage.h index 5322f9a71..d61d47eb4 100644 --- a/src/resources/subimage.h +++ b/src/resources/subimage.h @@ -33,7 +33,9 @@ #ifdef ANDROID #include #else +#ifndef USE_SDL2 #define GL_GLEXT_PROTOTYPES 1 +#endif #include #endif -- cgit v1.2.3-60-g2f50