From 5e37f24550e133d985945bb008782df543e1f428 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 20 Jun 2017 03:06:00 +0300 Subject: Fix sdl warning hiding pragmas for old compilers. --- src/graphicsmanager.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/graphicsmanager.h') diff --git a/src/graphicsmanager.h b/src/graphicsmanager.h index 82ccfe193..495bd3fca 100644 --- a/src/graphicsmanager.h +++ b/src/graphicsmanager.h @@ -23,16 +23,18 @@ #ifdef USE_OPENGL +#include "localconsts.h" + #ifdef ANDROID #include #else // ANDROID #ifndef USE_SDL2 #define GL_GLEXT_PROTOTYPES 1 #endif // USE_SDL2 -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wshadow") +PRAGMA48(GCC diagnostic push) +PRAGMA48(GCC diagnostic ignored "-Wshadow") #include -#pragma GCC diagnostic pop +PRAGMA48(GCC diagnostic pop) // hack to hide warnings #undef GL_GLEXT_VERSION #undef GL_GLEXT_PROTOTYPES @@ -46,8 +48,6 @@ #include -#include "localconsts.h" - class TestMain; struct FBOInfo; -- cgit v1.2.3-60-g2f50