summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/resources/map/maplayer.cpp2
-rw-r--r--src/soundmanager.cpp2
-rw-r--r--src/utils/stringutils.cpp6
3 files changed, 7 insertions, 3 deletions
diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp
index f9f154a64..b55637143 100644
--- a/src/resources/map/maplayer.cpp
+++ b/src/resources/map/maplayer.cpp
@@ -31,7 +31,9 @@
#include "gui/userpalette.h"
+#ifdef USE_OPENGL
#include "utils/foreach.h"
+#endif // USE_OPENGL
#include "render/graphics.h"
diff --git a/src/soundmanager.cpp b/src/soundmanager.cpp
index e9e54b046..37a6321a7 100644
--- a/src/soundmanager.cpp
+++ b/src/soundmanager.cpp
@@ -30,7 +30,9 @@
#include "fs/virtfs/fs.h"
+#ifndef TMWA_SUPPORT
#include "utils/cast.h"
+#endif // TMWA_SUPPORT
#include "resources/sdlmusic.h"
#include "resources/soundeffect.h"
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index 71a82f16f..7f3ba988c 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -24,13 +24,13 @@
#include "const/utils/utf8.h"
-#ifndef DYECMD
+#ifdef DYECMD
+#include "utils/cast.h"
+#else // DYECMD
#include "resources/iteminfo.h"
-
#include "resources/db/itemdb.h"
#endif // DYECMD
-#include "utils/cast.h"
#include "utils/gettext.h"
#include "utils/foreach.h"