summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/unittests/sdl.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/unittests/sdl.cc b/src/unittests/sdl.cc
index 1d2943605..eaf744329 100644
--- a/src/unittests/sdl.cc
+++ b/src/unittests/sdl.cc
@@ -45,13 +45,12 @@
#include "utils/env.h"
#include "utils/delete2.h"
+#ifndef USE_SDL2
PRAGMA48(GCC diagnostic push)
PRAGMA48(GCC diagnostic ignored "-Wshadow")
#include <SDL_image.h>
PRAGMA48(GCC diagnostic pop)
-
-#ifndef UNITTESTS_CATCH
-#endif // UNITTESTS_CATCH
+#endif // USE_SDL2
#include "debug.h"