summaryrefslogtreecommitdiff
path: root/src/resources/sdlimagehelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/sdlimagehelper.h')
-rw-r--r--src/resources/sdlimagehelper.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/sdlimagehelper.h b/src/resources/sdlimagehelper.h
index 291345164..0aa3001b0 100644
--- a/src/resources/sdlimagehelper.h
+++ b/src/resources/sdlimagehelper.h
@@ -23,6 +23,11 @@
#ifndef RESOURCES_SDLIMAGEHELPER_H
#define RESOURCES_SDLIMAGEHELPER_H
+#ifdef USE_SDL2
+#include "sdl2imagehelper.h"
+
+#else
+
#include "localconsts.h"
#include "resources/imagehelper.h"
@@ -94,4 +99,5 @@ class SDLImageHelper final : public ImageHelper
static bool mEnableAlphaCache;
};
+#endif // USE_SDL2
#endif // RESOURCES_SDLIMAGEHELPER_H