Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Commit

Permalink
SDL: Don't include png.h when building without libpng
Browse files Browse the repository at this point in the history
Should make possible to build on AmigaOS 4 where the Image namespace
conflicts with a struct from the SDK.
  • Loading branch information
bgK committed May 19, 2019
1 parent 3cfb8b1 commit 119ff7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backends/graphics/openglsdl/openglsdl-graphics.cpp
Expand Up @@ -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)
:
Expand Down
2 changes: 2 additions & 0 deletions backends/graphics/surfacesdl/surfacesdl-graphics.cpp
Expand Up @@ -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)
:
Expand Down

0 comments on commit 119ff7f

Please sign in to comment.