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/resources/screenshothelper.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/resources/screenshothelper.h') diff --git a/src/resources/screenshothelper.h b/src/resources/screenshothelper.h index e37db92ed..5f525c03c 100644 --- a/src/resources/screenshothelper.h +++ b/src/resources/screenshothelper.h @@ -24,15 +24,15 @@ #define RESOURCES_SCREENSHOTHELPER_H #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 #if !defined(_SDL_stdinc_h) && !defined(SDL_stdinc_h_) && !defined(SDL_stdinc_h) #error need include SDL_stdinc.h #endif // !defined(_SDL_stdinc_h) && !defined(SDL_stdinc_h_) #ifdef USE_SDL2 -#pragma GCC diagnostic pop +PRAGMA45(GCC diagnostic pop) #endif // USE_SDL2 #include -- cgit v1.2.3-70-g09d2