From 485ba81a87c50c23d1f97318e42f4937af1fda1f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 4 Jun 2016 03:21:57 +0300 Subject: Remove some useless includes if using SDL2. --- src/render/rendererslistsdl2.h | 2 ++ src/render/surfacegraphics.cpp | 3 +++ 2 files changed, 5 insertions(+) (limited to 'src/render') diff --git a/src/render/rendererslistsdl2.h b/src/render/rendererslistsdl2.h index e98922f70..3944f4a56 100644 --- a/src/render/rendererslistsdl2.h +++ b/src/render/rendererslistsdl2.h @@ -25,6 +25,8 @@ #include "utils/gettext.h" +#include "render/renderers.h" + #ifdef USE_OPENGL #ifdef ANDROID // defined OPENGL ANDROID diff --git a/src/render/surfacegraphics.cpp b/src/render/surfacegraphics.cpp index d3083dd5c..e6fc33298 100644 --- a/src/render/surfacegraphics.cpp +++ b/src/render/surfacegraphics.cpp @@ -23,7 +23,10 @@ #include "render/surfacegraphics.h" #include "resources/image.h" + +#ifndef USE_SDL2 #include "resources/surfaceimagehelper.h" +#endif // USE_SDL2 #include "debug.h" -- cgit v1.2.3-70-g09d2