diff options
-rw-r--r-- | backends/platform/sdl/win32/win32_wrapper.cpp | 7 | ||||
-rw-r--r-- | backends/saves/windows/windows-saves.cpp | 9 |
2 files changed, 6 insertions, 10 deletions
diff --git a/backends/platform/sdl/win32/win32_wrapper.cpp b/backends/platform/sdl/win32/win32_wrapper.cpp index 6ad0f725ed..aa3a05fa48 100644 --- a/backends/platform/sdl/win32/win32_wrapper.cpp +++ b/backends/platform/sdl/win32/win32_wrapper.cpp @@ -20,16 +20,15 @@ * */ -#include "common/scummsys.h" -// We need certain functions that are excluded by default -#undef NONLS +#define WIN32_LEAN_AND_MEAN #include <windows.h> #if defined(__GNUC__) && defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) -// required for SHGetSpecialFolderPath in shlobj.h + // required for SHGetSpecialFolderPath in shlobj.h #define _WIN32_IE 0x400 #endif #include <shlobj.h> +#include "common/scummsys.h" #include "backends/platform/sdl/win32/win32_wrapper.h" // VerSetConditionMask, VerifyVersionInfo and SHGetFolderPath didn't appear until Windows 2000, diff --git a/backends/saves/windows/windows-saves.cpp b/backends/saves/windows/windows-saves.cpp index 967f0d8301..fec4828725 100644 --- a/backends/saves/windows/windows-saves.cpp +++ b/backends/saves/windows/windows-saves.cpp @@ -20,10 +20,6 @@ * */ -#include "common/scummsys.h" - -#include "backends/saves/windows/windows-saves.h" - #if defined(WIN32) && !defined(_WIN32_WCE) && !defined(DISABLE_DEFAULT_SAVEFILEMANAGER) #if defined(ARRAYSIZE) @@ -33,13 +29,14 @@ #include <windows.h> #undef ARRAYSIZE // winnt.h defines ARRAYSIZE, but we want our own one... #if defined(__GNUC__) && defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) -// required for SHGFP_TYPE_CURRENT in shlobj.h + // required for SHGFP_TYPE_CURRENT in shlobj.h #define _WIN32_IE 0x500 #endif #include <shlobj.h> +#include "common/scummsys.h" #include "common/config-manager.h" -#include "common/savefile.h" +#include "backends/saves/windows/windows-saves.h" #include "backends/platform/sdl/win32/win32_wrapper.h" WindowsSaveFileManager::WindowsSaveFileManager() { |