summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/buildhex.h4
-rw-r--r--src/utils/physfsrwops.h4
-rw-r--r--src/utils/sdl2helper.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/utils/buildhex.h b/src/utils/buildhex.h
index 3ee72d28c..39a9aa817 100644
--- a/src/utils/buildhex.h
+++ b/src/utils/buildhex.h
@@ -21,6 +21,8 @@
#ifndef UTILS_BUILDHEX_H
#define UTILS_BUILDHEX_H
+#include "localconsts.h"
+
#ifdef USE_SDL2
PRAGMA45(GCC diagnostic push)
PRAGMA45(GCC diagnostic ignored "-Wswitch-default")
@@ -37,8 +39,6 @@ PRAGMA45(GCC diagnostic pop)
#include <SDL_endian.h>
#endif // SDL_BYTEORDER
-#include "localconsts.h"
-
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
#define buildHex(a, b, c, d) \
(d) * 16777216U + (c) * 65536U + (b) * 256U + CAST_U32(a)
diff --git a/src/utils/physfsrwops.h b/src/utils/physfsrwops.h
index f3eefe0a5..b72c5969d 100644
--- a/src/utils/physfsrwops.h
+++ b/src/utils/physfsrwops.h
@@ -25,6 +25,8 @@
#ifndef UTILS_PHYSFSRWOPS_H
#define UTILS_PHYSFSRWOPS_H
+#include "localconsts.h"
+
#ifdef USE_SDL2
PRAGMA45(GCC diagnostic push)
PRAGMA45(GCC diagnostic ignored "-Wswitch-default")
@@ -40,8 +42,6 @@ PRAGMA45(GCC diagnostic pop)
#include "utils/physfstools.h"
-#include "localconsts.h"
-
/**
* Open a platform-independent filename for reading, and make it accessible
* via an SDL_RWops structure. The file will be closed in PhysicsFS when the
diff --git a/src/utils/sdl2helper.h b/src/utils/sdl2helper.h
index 412701a02..9be1c25e5 100644
--- a/src/utils/sdl2helper.h
+++ b/src/utils/sdl2helper.h
@@ -24,6 +24,8 @@
#ifdef USE_SDL2
#include "utils/stringvector.h"
+#include "localconsts.h"
+
PRAGMA45(GCC diagnostic push)
PRAGMA45(GCC diagnostic ignored "-Wswitch-default")
#include <SDL_stdinc.h>
@@ -34,8 +36,6 @@ PRAGMA45(GCC diagnostic ignored "-Wswitch-default")
PRAGMA45(GCC diagnostic pop)
#include <SDL_thread.h>
-#include "localconsts.h"
-
struct SDL_Surface;
struct SDL_SysWMinfo;
struct SDL_Window;