aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/audiocd/sdl/sdl-audiocd.cpp2
-rw-r--r--backends/events/default/default-events.cpp2
-rw-r--r--backends/events/dinguxsdl/dinguxsdl-events.cpp2
-rw-r--r--backends/events/gp2xsdl/gp2xsdl-events.cpp2
-rw-r--r--backends/events/linuxmotosdl/linuxmotosdl-events.cpp2
-rw-r--r--backends/events/samsungtvsdl/samsungtvsdl-events.cpp2
-rw-r--r--backends/events/sdl/sdl-events.cpp2
-rw-r--r--backends/events/symbiansdl/symbiansdl-events.cpp2
-rw-r--r--backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp2
-rw-r--r--backends/graphics/gp2xsdl/gp2xsdl-graphics.cpp2
-rw-r--r--backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp2
-rw-r--r--backends/graphics/opengl/glerrorcheck.cpp2
-rw-r--r--backends/graphics/opengl/gltexture.cpp2
-rw-r--r--backends/graphics/opengl/opengl-graphics.cpp2
-rw-r--r--backends/graphics/openglsdl/openglsdl-graphics.cpp2
-rw-r--r--backends/graphics/sdl/sdl-graphics.cpp2
-rw-r--r--backends/graphics/symbiansdl/symbiansdl-graphics.cpp2
-rw-r--r--backends/midi/coreaudio.cpp6
-rw-r--r--backends/midi/coremidi.cpp6
-rw-r--r--backends/midi/dmedia.cpp6
-rw-r--r--backends/midi/stmidi.cpp6
-rw-r--r--backends/midi/windows.cpp2
-rw-r--r--backends/mutex/sdl/sdl-mutex.cpp2
-rw-r--r--backends/platform/sdl/amigaos/amigaos-main.cpp2
-rw-r--r--backends/platform/sdl/amigaos/amigaos.cpp2
-rw-r--r--backends/platform/sdl/macosx/macosx-main.cpp2
-rw-r--r--backends/platform/sdl/macosx/macosx.cpp6
-rw-r--r--backends/platform/sdl/posix/posix-main.cpp2
-rw-r--r--backends/platform/sdl/posix/posix.cpp2
-rw-r--r--backends/platform/sdl/sdl.cpp2
-rw-r--r--backends/platform/sdl/win32/win32-main.cpp2
-rw-r--r--backends/platform/sdl/win32/win32.cpp2
-rw-r--r--backends/plugins/dc/dc-provider.cpp2
-rw-r--r--backends/plugins/ds/ds-provider.cpp2
-rw-r--r--backends/plugins/posix/posix-provider.cpp2
-rw-r--r--backends/plugins/ps2/ps2-provider.cpp2
-rw-r--r--backends/plugins/psp/psp-provider.cpp2
-rw-r--r--backends/plugins/sdl/sdl-provider.cpp5
-rw-r--r--backends/plugins/wii/wii-provider.cpp2
-rw-r--r--backends/plugins/win32/win32-provider.cpp2
-rw-r--r--backends/saves/default/default-saves.cpp2
-rw-r--r--backends/saves/posix/posix-saves.cpp2
-rw-r--r--backends/saves/psp/psp-saves.cpp2
-rw-r--r--backends/timer/psp/timer.cpp2
-rw-r--r--backends/timer/sdl/sdl-timer.cpp2
-rw-r--r--backends/vkeybd/image-map.cpp2
-rw-r--r--backends/vkeybd/polygon.cpp2
-rw-r--r--backends/vkeybd/virtual-keyboard-gui.cpp2
-rw-r--r--backends/vkeybd/virtual-keyboard-parser.cpp1
-rw-r--r--backends/vkeybd/virtual-keyboard.cpp2
50 files changed, 108 insertions, 14 deletions
diff --git a/backends/audiocd/sdl/sdl-audiocd.cpp b/backends/audiocd/sdl/sdl-audiocd.cpp
index 62ab333f54..362ed0fc47 100644
--- a/backends/audiocd/sdl/sdl-audiocd.cpp
+++ b/backends/audiocd/sdl/sdl-audiocd.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(SDL_BACKEND)
// Disable symbol overrides so that we can use system headers.
diff --git a/backends/events/default/default-events.cpp b/backends/events/default/default-events.cpp
index c8d19a57a5..9befeb00c9 100644
--- a/backends/events/default/default-events.cpp
+++ b/backends/events/default/default-events.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if !defined(DISABLE_DEFAULT_EVENTMANAGER)
#include "common/system.h"
diff --git a/backends/events/dinguxsdl/dinguxsdl-events.cpp b/backends/events/dinguxsdl/dinguxsdl-events.cpp
index 03e1663ca8..427b14fdae 100644
--- a/backends/events/dinguxsdl/dinguxsdl-events.cpp
+++ b/backends/events/dinguxsdl/dinguxsdl-events.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(DINGUX)
// Disable symbol overrides so that we can use system headers.
diff --git a/backends/events/gp2xsdl/gp2xsdl-events.cpp b/backends/events/gp2xsdl/gp2xsdl-events.cpp
index 51ff334441..b3818940c6 100644
--- a/backends/events/gp2xsdl/gp2xsdl-events.cpp
+++ b/backends/events/gp2xsdl/gp2xsdl-events.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(GP2X) || defined(GP2XWIZ)
// Disable symbol overrides so that we can use system headers.
diff --git a/backends/events/linuxmotosdl/linuxmotosdl-events.cpp b/backends/events/linuxmotosdl/linuxmotosdl-events.cpp
index 5e570f99dd..aa9214d89f 100644
--- a/backends/events/linuxmotosdl/linuxmotosdl-events.cpp
+++ b/backends/events/linuxmotosdl/linuxmotosdl-events.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(LINUXMOTO)
// Disable symbol overrides so that we can use system headers.
diff --git a/backends/events/samsungtvsdl/samsungtvsdl-events.cpp b/backends/events/samsungtvsdl/samsungtvsdl-events.cpp
index 1d8e5e4a28..deb4e8cc67 100644
--- a/backends/events/samsungtvsdl/samsungtvsdl-events.cpp
+++ b/backends/events/samsungtvsdl/samsungtvsdl-events.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#ifdef SAMSUNGTV
#include "backends/events/samsungtvsdl/samsungtvsdl-events.h"
diff --git a/backends/events/sdl/sdl-events.cpp b/backends/events/sdl/sdl-events.cpp
index 379e77a48d..83d726c92d 100644
--- a/backends/events/sdl/sdl-events.cpp
+++ b/backends/events/sdl/sdl-events.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(SDL_BACKEND)
// Disable symbol overrides so that we can use system headers.
diff --git a/backends/events/symbiansdl/symbiansdl-events.cpp b/backends/events/symbiansdl/symbiansdl-events.cpp
index 751734f8ec..8c995e7eb7 100644
--- a/backends/events/symbiansdl/symbiansdl-events.cpp
+++ b/backends/events/symbiansdl/symbiansdl-events.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#ifdef __SYMBIAN32__
#include "backends/events/symbiansdl/symbiansdl-events.h"
diff --git a/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp b/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp
index fe8c742ed9..fb164638b9 100644
--- a/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp
+++ b/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(DINGUX)
// Disable symbol overrides so that we can use system headers.
diff --git a/backends/graphics/gp2xsdl/gp2xsdl-graphics.cpp b/backends/graphics/gp2xsdl/gp2xsdl-graphics.cpp
index 2b029a39e5..e785935e4d 100644
--- a/backends/graphics/gp2xsdl/gp2xsdl-graphics.cpp
+++ b/backends/graphics/gp2xsdl/gp2xsdl-graphics.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#ifdef GP2X
// Disable symbol overrides so that we can use system headers.
diff --git a/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp b/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp
index bf3330db4c..c2dcb7f587 100644
--- a/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp
+++ b/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(LINUXMOTO)
#include "backends/graphics/linuxmotosdl/linuxmotosdl-graphics.h"
diff --git a/backends/graphics/opengl/glerrorcheck.cpp b/backends/graphics/opengl/glerrorcheck.cpp
index c3b0c9cd63..13da4ba60f 100644
--- a/backends/graphics/opengl/glerrorcheck.cpp
+++ b/backends/graphics/opengl/glerrorcheck.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(DEBUG) && defined(USE_OPENGL)
#include "backends/graphics/opengl/glerrorcheck.h"
diff --git a/backends/graphics/opengl/gltexture.cpp b/backends/graphics/opengl/gltexture.cpp
index 650f12b92c..a76fc3d9e6 100644
--- a/backends/graphics/opengl/gltexture.cpp
+++ b/backends/graphics/opengl/gltexture.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(USE_OPENGL)
#include "backends/graphics/opengl/gltexture.h"
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index f826da48fe..35dd9a6046 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(USE_OPENGL)
#include "backends/graphics/opengl/opengl-graphics.h"
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp
index 01ea0d465d..f3aba1fcf4 100644
--- a/backends/graphics/openglsdl/openglsdl-graphics.cpp
+++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(SDL_BACKEND) && defined(USE_OPENGL)
#include "backends/graphics/openglsdl/openglsdl-graphics.h"
diff --git a/backends/graphics/sdl/sdl-graphics.cpp b/backends/graphics/sdl/sdl-graphics.cpp
index 226285c593..7746cc54a7 100644
--- a/backends/graphics/sdl/sdl-graphics.cpp
+++ b/backends/graphics/sdl/sdl-graphics.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(SDL_BACKEND)
#include "backends/graphics/sdl/sdl-graphics.h"
diff --git a/backends/graphics/symbiansdl/symbiansdl-graphics.cpp b/backends/graphics/symbiansdl/symbiansdl-graphics.cpp
index b930b5a9d1..d0c8728ce9 100644
--- a/backends/graphics/symbiansdl/symbiansdl-graphics.cpp
+++ b/backends/graphics/symbiansdl/symbiansdl-graphics.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#ifdef __SYMBIAN32__
#include "backends/graphics/symbiansdl/symbiansdl-graphics.h"
diff --git a/backends/midi/coreaudio.cpp b/backends/midi/coreaudio.cpp
index 97db5cb292..62e9a6d0f4 100644
--- a/backends/midi/coreaudio.cpp
+++ b/backends/midi/coreaudio.cpp
@@ -22,11 +22,13 @@
* $Id$
*/
-#ifdef MACOSX
-
// Disable symbol overrides so that we can use system headers.
#define FORBIDDEN_SYMBOL_ALLOW_ALL
+#include "common/scummsys.h"
+
+#ifdef MACOSX
+
// HACK to disable deprecated warnings under Mac OS X 10.5.
// Apple depracted the AUGraphNewNode & AUGraphGetNodeInfo APIs
// in favor of the new AUGraphAddNode & AUGraphNodeInfo APIs.
diff --git a/backends/midi/coremidi.cpp b/backends/midi/coremidi.cpp
index bca16df61a..2df9f78383 100644
--- a/backends/midi/coremidi.cpp
+++ b/backends/midi/coremidi.cpp
@@ -22,11 +22,13 @@
* $Id$
*/
-#ifdef MACOSX
-
// Disable symbol overrides so that we can use system headers.
#define FORBIDDEN_SYMBOL_ALLOW_ALL
+#include "common/scummsys.h"
+
+#ifdef MACOSX
+
#include "common/config-manager.h"
#include "common/util.h"
#include "sound/musicplugin.h"
diff --git a/backends/midi/dmedia.cpp b/backends/midi/dmedia.cpp
index 5e4088fa17..95a199f8bc 100644
--- a/backends/midi/dmedia.cpp
+++ b/backends/midi/dmedia.cpp
@@ -27,12 +27,14 @@
* some code liberated from seq.cpp and coremidi.cpp
*/
-#if defined(IRIX)
-
// Disable symbol overrides so that we can use system headers.
#define FORBIDDEN_SYMBOL_ALLOW_ALL
#include "common/scummsys.h"
+
+#if defined(IRIX)
+
+#include "common/scummsys.h"
#include "common/util.h"
#include "common/config-manager.h"
#include "sound/musicplugin.h"
diff --git a/backends/midi/stmidi.cpp b/backends/midi/stmidi.cpp
index 01e28aa5ca..6e4d69f255 100644
--- a/backends/midi/stmidi.cpp
+++ b/backends/midi/stmidi.cpp
@@ -34,11 +34,13 @@
* cycles. I might change so sysex messages are sent the other way later.
*/
-#if defined __MINT__
-
// Disable symbol overrides so that we can use system headers.
#define FORBIDDEN_SYMBOL_ALLOW_ALL
+#include "common/scummsys.h"
+
+#if defined __MINT__
+
#include <osbind.h>
#include "sound/mpu401.h"
#include "common/util.h"
diff --git a/backends/midi/windows.cpp b/backends/midi/windows.cpp
index 81b29219b4..40d9bd8ebd 100644
--- a/backends/midi/windows.cpp
+++ b/backends/midi/windows.cpp
@@ -22,6 +22,8 @@
* $Id$
*/
+#include "common/scummsys.h"
+
#if defined(WIN32) && !defined(_WIN32_WCE)
// Disable symbol overrides so that we can use system headers.
diff --git a/backends/mutex/sdl/sdl-mutex.cpp b/backends/mutex/sdl/sdl-mutex.cpp
index 3c572a94d5..90fd4c1497 100644
--- a/backends/mutex/sdl/sdl-mutex.cpp
+++ b/backends/mutex/sdl/sdl-mutex.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(SDL_BACKEND)
#include "backends/mutex/sdl/sdl-mutex.h"
diff --git a/backends/platform/sdl/amigaos/amigaos-main.cpp b/backends/platform/sdl/amigaos/amigaos-main.cpp
index db4598e879..beb27fd714 100644
--- a/backends/platform/sdl/amigaos/amigaos-main.cpp
+++ b/backends/platform/sdl/amigaos/amigaos-main.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(__amigaos4__)
#include "backends/platform/sdl/amigaos/amigaos.h"
diff --git a/backends/platform/sdl/amigaos/amigaos.cpp b/backends/platform/sdl/amigaos/amigaos.cpp
index d2924445a3..77c2c2e21d 100644
--- a/backends/platform/sdl/amigaos/amigaos.cpp
+++ b/backends/platform/sdl/amigaos/amigaos.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#ifdef __amigaos4__
#include "backends/platform/sdl/amigaos/amigaos.h"
diff --git a/backends/platform/sdl/macosx/macosx-main.cpp b/backends/platform/sdl/macosx/macosx-main.cpp
index 023860b19f..94655f8118 100644
--- a/backends/platform/sdl/macosx/macosx-main.cpp
+++ b/backends/platform/sdl/macosx/macosx-main.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#ifdef MACOSX
#include "backends/platform/sdl/macosx/macosx.h"
diff --git a/backends/platform/sdl/macosx/macosx.cpp b/backends/platform/sdl/macosx/macosx.cpp
index 814badbca4..5ea65b6449 100644
--- a/backends/platform/sdl/macosx/macosx.cpp
+++ b/backends/platform/sdl/macosx/macosx.cpp
@@ -23,11 +23,13 @@
*
*/
-#ifdef MACOSX
-
// Disable symbol overrides so that we can use system headers.
#define FORBIDDEN_SYMBOL_ALLOW_ALL
+#include "common/scummsys.h"
+
+#ifdef MACOSX
+
#include "backends/platform/sdl/macosx/macosx.h"
#include "backends/mixer/doublebuffersdl/doublebuffersdl-mixer.h"
diff --git a/backends/platform/sdl/posix/posix-main.cpp b/backends/platform/sdl/posix/posix-main.cpp
index de9eb2b7ef..10ed43f43f 100644
--- a/backends/platform/sdl/posix/posix-main.cpp
+++ b/backends/platform/sdl/posix/posix-main.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(UNIX) && !defined(MACOSX) && !defined(SAMSUNGTV) && !defined(LINUXMOTO) && !defined(GP2XWIZ) && !defined(GP2X) && !defined(DINGUX)
#include "backends/platform/sdl/posix/posix.h"
diff --git a/backends/platform/sdl/posix/posix.cpp b/backends/platform/sdl/posix/posix.cpp
index c9c7304c0f..6f91188184 100644
--- a/backends/platform/sdl/posix/posix.cpp
+++ b/backends/platform/sdl/posix/posix.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#ifdef UNIX
#include "backends/platform/sdl/posix/posix.h"
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp
index 5d41c304ef..561e5b2aec 100644
--- a/backends/platform/sdl/sdl.cpp
+++ b/backends/platform/sdl/sdl.cpp
@@ -24,7 +24,7 @@
*/
// Disable symbol overrides so that we can use system headers.
-#define FORBIDDEN_SYMBOL_ALLOW_ALL
+#define FORBIDDEN_SYMBOL_EXCEPTION_FILE
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
diff --git a/backends/platform/sdl/win32/win32-main.cpp b/backends/platform/sdl/win32/win32-main.cpp
index 25f208ddac..f2b570043f 100644
--- a/backends/platform/sdl/win32/win32-main.cpp
+++ b/backends/platform/sdl/win32/win32-main.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#ifdef WIN32
// Fix for bug #2895217 "MSVC compilation broken with r47595":
diff --git a/backends/platform/sdl/win32/win32.cpp b/backends/platform/sdl/win32/win32.cpp
index dce7b88c13..9723d1f68e 100644
--- a/backends/platform/sdl/win32/win32.cpp
+++ b/backends/platform/sdl/win32/win32.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
diff --git a/backends/plugins/dc/dc-provider.cpp b/backends/plugins/dc/dc-provider.cpp
index 9fce62dbe3..67877dc9f4 100644
--- a/backends/plugins/dc/dc-provider.cpp
+++ b/backends/plugins/dc/dc-provider.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(DYNAMIC_MODULES) && defined(__DC__)
#include "backends/plugins/dc/dc-provider.h"
diff --git a/backends/plugins/ds/ds-provider.cpp b/backends/plugins/ds/ds-provider.cpp
index 832fd1312c..d0697371e9 100644
--- a/backends/plugins/ds/ds-provider.cpp
+++ b/backends/plugins/ds/ds-provider.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(DYNAMIC_MODULES) && defined(__DS__)
#include <malloc.h>
diff --git a/backends/plugins/posix/posix-provider.cpp b/backends/plugins/posix/posix-provider.cpp
index 7dd25ddd67..01e48739bd 100644
--- a/backends/plugins/posix/posix-provider.cpp
+++ b/backends/plugins/posix/posix-provider.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(DYNAMIC_MODULES) && defined(UNIX)
#include "backends/plugins/posix/posix-provider.h"
diff --git a/backends/plugins/ps2/ps2-provider.cpp b/backends/plugins/ps2/ps2-provider.cpp
index 37bdff0525..0836ed18b4 100644
--- a/backends/plugins/ps2/ps2-provider.cpp
+++ b/backends/plugins/ps2/ps2-provider.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(DYNAMIC_MODULES) && defined(__PLAYSTATION2__)
#include "backends/plugins/ps2/ps2-provider.h"
diff --git a/backends/plugins/psp/psp-provider.cpp b/backends/plugins/psp/psp-provider.cpp
index 87e4428024..5fa083c88c 100644
--- a/backends/plugins/psp/psp-provider.cpp
+++ b/backends/plugins/psp/psp-provider.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(DYNAMIC_MODULES) && defined(__PSP__)
#include <psputils.h>
diff --git a/backends/plugins/sdl/sdl-provider.cpp b/backends/plugins/sdl/sdl-provider.cpp
index 46e00de453..51c19fcef3 100644
--- a/backends/plugins/sdl/sdl-provider.cpp
+++ b/backends/plugins/sdl/sdl-provider.cpp
@@ -23,10 +23,9 @@
*
*/
-#if defined(DYNAMIC_MODULES) && defined(SDL_BACKEND)
+#include "common/scummsys.h"
-// Disable symbol overrides so that we can use system headers.
-#define FORBIDDEN_SYMBOL_ALLOW_ALL
+#if defined(DYNAMIC_MODULES) && defined(SDL_BACKEND)
#include "backends/plugins/sdl/sdl-provider.h"
#include "backends/plugins/dynamic-plugin.h"
diff --git a/backends/plugins/wii/wii-provider.cpp b/backends/plugins/wii/wii-provider.cpp
index b05bc59432..639616ac15 100644
--- a/backends/plugins/wii/wii-provider.cpp
+++ b/backends/plugins/wii/wii-provider.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(DYNAMIC_MODULES) && defined(__WII__)
#include <malloc.h>
diff --git a/backends/plugins/win32/win32-provider.cpp b/backends/plugins/win32/win32-provider.cpp
index 65586249e8..16532d4059 100644
--- a/backends/plugins/win32/win32-provider.cpp
+++ b/backends/plugins/win32/win32-provider.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(DYNAMIC_MODULES) && defined(_WIN32)
#include "backends/plugins/win32/win32-provider.h"
diff --git a/backends/saves/default/default-saves.cpp b/backends/saves/default/default-saves.cpp
index c88f36f5cc..0e16f165b3 100644
--- a/backends/saves/default/default-saves.cpp
+++ b/backends/saves/default/default-saves.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if !defined(DISABLE_DEFAULT_SAVEFILEMANAGER)
#include "backends/saves/default/default-saves.h"
diff --git a/backends/saves/posix/posix-saves.cpp b/backends/saves/posix/posix-saves.cpp
index 5b13513bcb..866cd912e5 100644
--- a/backends/saves/posix/posix-saves.cpp
+++ b/backends/saves/posix/posix-saves.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(UNIX) && !defined(DISABLE_DEFAULT_SAVEFILEMANAGER)
#include "backends/saves/posix/posix-saves.h"
diff --git a/backends/saves/psp/psp-saves.cpp b/backends/saves/psp/psp-saves.cpp
index 475c8fa6c5..66c63dfdea 100644
--- a/backends/saves/psp/psp-saves.cpp
+++ b/backends/saves/psp/psp-saves.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#ifdef __PSP__
#include "backends/saves/psp/psp-saves.h"
diff --git a/backends/timer/psp/timer.cpp b/backends/timer/psp/timer.cpp
index 2b6bebe37c..27e8ef0aeb 100644
--- a/backends/timer/psp/timer.cpp
+++ b/backends/timer/psp/timer.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined (__PSP__)
#include <pspthreadman.h>
diff --git a/backends/timer/sdl/sdl-timer.cpp b/backends/timer/sdl/sdl-timer.cpp
index 83b2cff3eb..e810d3e646 100644
--- a/backends/timer/sdl/sdl-timer.cpp
+++ b/backends/timer/sdl/sdl-timer.cpp
@@ -24,6 +24,8 @@
*
*/
+#include "common/scummsys.h"
+
#if defined(SDL_BACKEND)
// Disable symbol overrides so that we can use system headers.
diff --git a/backends/vkeybd/image-map.cpp b/backends/vkeybd/image-map.cpp
index 36d060e1d4..b0a77b5220 100644
--- a/backends/vkeybd/image-map.cpp
+++ b/backends/vkeybd/image-map.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#ifdef ENABLE_VKEYBD
#include "backends/vkeybd/image-map.h"
diff --git a/backends/vkeybd/polygon.cpp b/backends/vkeybd/polygon.cpp
index 66e53d9df0..8becbed585 100644
--- a/backends/vkeybd/polygon.cpp
+++ b/backends/vkeybd/polygon.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#ifdef ENABLE_VKEYBD
#include "backends/vkeybd/polygon.h"
diff --git a/backends/vkeybd/virtual-keyboard-gui.cpp b/backends/vkeybd/virtual-keyboard-gui.cpp
index 8bfadfd88c..c5ab39e46b 100644
--- a/backends/vkeybd/virtual-keyboard-gui.cpp
+++ b/backends/vkeybd/virtual-keyboard-gui.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#ifdef ENABLE_VKEYBD
#include "backends/vkeybd/virtual-keyboard-gui.h"
diff --git a/backends/vkeybd/virtual-keyboard-parser.cpp b/backends/vkeybd/virtual-keyboard-parser.cpp
index 5efdc0a653..a81258b25f 100644
--- a/backends/vkeybd/virtual-keyboard-parser.cpp
+++ b/backends/vkeybd/virtual-keyboard-parser.cpp
@@ -23,6 +23,7 @@
*
*/
+#include "common/scummsys.h"
#ifdef ENABLE_VKEYBD
diff --git a/backends/vkeybd/virtual-keyboard.cpp b/backends/vkeybd/virtual-keyboard.cpp
index 2c88322191..31fde8c0fa 100644
--- a/backends/vkeybd/virtual-keyboard.cpp
+++ b/backends/vkeybd/virtual-keyboard.cpp
@@ -23,6 +23,8 @@
*
*/
+#include "common/scummsys.h"
+
#ifdef ENABLE_VKEYBD
#include "backends/vkeybd/virtual-keyboard.h"