SDL: Don't include png.h when building without libpng

Should make possible to build on AmigaOS 4 where the Image namespace
conflicts with a struct from the SDK.
This commit is contained in:
Bastien Bouclet
2019-05-19 14:07:00 +02:00
parent 3cfb8b1eae
commit 119ff7f2f3
2 changed files with 4 additions and 0 deletions
@@ -37,7 +37,9 @@
#include "graphics/opengl/system_headers.h"
#include "graphics/opengl/texture.h"
#include "graphics/opengl/tiledsurface.h"
#ifdef USE_PNG
#include "image/png.h"
#endif
OpenGLSdlGraphicsManager::OpenGLSdlGraphicsManager(SdlEventSource *sdlEventSource, SdlWindow *window, const Capabilities &capabilities)
:
@@ -31,7 +31,9 @@
#include "engines/engine.h"
#include "graphics/pixelbuffer.h"
#include "graphics/surface.h"
#ifdef USE_PNG
#include "image/png.h"
#endif
SurfaceSdlGraphicsManager::SurfaceSdlGraphicsManager(SdlEventSource *sdlEventSource, SdlWindow *window, const Capabilities &capabilities)
: