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/dyetool/dyemain.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/dyetool/dyemain.cpp') diff --git a/src/dyetool/dyemain.cpp b/src/dyetool/dyemain.cpp index 4625e95fc..9763f603b 100644 --- a/src/dyetool/dyemain.cpp +++ b/src/dyetool/dyemain.cpp @@ -26,11 +26,10 @@ #include "resources/image.h" #include "resources/imagewriter.h" -#include "resources/sdlimagehelper.h" #ifdef USE_SDL2 #include "resources/surfaceimagehelper.h" -#endif +#endif // USE_SDL2 #include "resources/loaders/imageloader.h" @@ -41,7 +40,11 @@ #include +#ifndef USE_SDL2 +#include "resources/sdlimagehelper.h" + #include +#endif // USE_SDL2 #include "debug.h" -- cgit v1.2.3-70-g09d2