Skip to content

Commit

Permalink
fixup 136fdbf (HEAD^)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Nov 23, 2014
1 parent 136fdbf commit d7bac89
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/SDL_SavePNG/savepng.cpp
Expand Up @@ -6,10 +6,24 @@
*/
#include <SDL.h>

#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 <png.h>

#ifdef HAVE_GCC_4_9
#pragma GCC diagnostic pop
#endif

#include "savepng.h"

Expand Down

0 comments on commit d7bac89

Please sign in to comment.