From d7bac8946021009bea9ff708357f242466f2e48d Mon Sep 17 00:00:00 2001 From: Chris Beck Date: Sat, 22 Nov 2014 21:38:53 -0500 Subject: [PATCH] fixup 136fdbf1e8d9535b59a2efa6940d1c3d53c99644 (HEAD^) --- src/SDL_SavePNG/savepng.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/SDL_SavePNG/savepng.cpp b/src/SDL_SavePNG/savepng.cpp index 240f6c841674..c935418a05cb 100644 --- a/src/SDL_SavePNG/savepng.cpp +++ b/src/SDL_SavePNG/savepng.cpp @@ -6,10 +6,24 @@ */ #include +#ifdef __GNUC__ +#if __GNUC__ > 4 || __GNUC__== 4 && __GNUC_MINOR__ >= 9 +#define HAVE_GCC_4_9 +#endif +#endif + +#ifdef HAVE_GCC_4_9 #pragma GCC diagnostic push +#ifndef __clang__ #pragma GCC diagnostic ignored "-Wliteral-suffix" //GCC 4.9 with C++11 gives a warning about this in libpng header +#endif +#endif + #include + +#ifdef HAVE_GCC_4_9 #pragma GCC diagnostic pop +#endif #include "savepng.h"