From f29d4876505fd3fd8c5d2c115e2a790409b02289 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 7 Feb 2017 17:21:59 +0300 Subject: Fix compilation with gcc version below 4.6. --- src/localconsts.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/localconsts.h') diff --git a/src/localconsts.h b/src/localconsts.h index 08623b2b5..072b063d0 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -294,12 +294,12 @@ #endif // ENABLE_CHECKS #ifdef USE_SDL2 -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wswitch-default" +PRAGMA45(GCC diagnostic push) +PRAGMA45(GCC diagnostic ignored "-Wswitch-default") #endif // USE_SDL2 #include #ifdef USE_SDL2 -#pragma GCC diagnostic pop +PRAGMA45(GCC diagnostic pop) #endif // USE_SDL2 #if SDL_VERSION_ATLEAST(2, 0, 0) -- cgit v1.2.3-70-g09d2