summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/chatutils_unittest.cc4
-rw-r--r--src/utils/files_unittest.cc4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/utils/chatutils_unittest.cc b/src/utils/chatutils_unittest.cc
index af4cb388a..d4da5e453 100644
--- a/src/utils/chatutils_unittest.cc
+++ b/src/utils/chatutils_unittest.cc
@@ -37,6 +37,10 @@
#include "resources/resourcemanager/resourcemanager.h"
+#ifndef USE_SDL2
+#include <SDL.h>
+#endif // USE_SDL2
+
#include "debug.h"
TEST_CASE("chatutils replaceVars")
diff --git a/src/utils/files_unittest.cc b/src/utils/files_unittest.cc
index 5ccfe0e04..db56e03e9 100644
--- a/src/utils/files_unittest.cc
+++ b/src/utils/files_unittest.cc
@@ -27,6 +27,10 @@
#include "resources/resourcemanager/resourcemanager.h"
+#ifndef USE_SDL2
+#include <SDL.h>
+#endif // USE_SDL2
+
#include "debug.h"
TEST_CASE("Files renameFile")