From 4966142826b2b1ca41d8a8af3b07fac15395b1f4 Mon Sep 17 00:00:00 2001 From: Echo J Date: Mon, 4 Nov 2024 15:35:25 +0200 Subject: [PATCH] Use lowercase names for Windows headers This fixes missing header issues on a case-sensitive filesystem with MinGW GCC --- DDraw/dllmain.cpp | 6 +++--- SilentPatch/Common_ddraw.cpp | 6 +++--- SilentPatch/ParseUtils.cpp | 2 +- SilentPatch/TheFLAUtils.cpp | 4 ++-- SilentPatchIII/SilentPatchIII.cpp | 4 ++-- SilentPatchVC/SilentPatchVC.cpp | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/DDraw/dllmain.cpp b/DDraw/dllmain.cpp index 9f098f1..e77a2d1 100644 --- a/DDraw/dllmain.cpp +++ b/DDraw/dllmain.cpp @@ -4,8 +4,8 @@ #include #include -#include -#include +#include +#include #include "Utils/MemoryMgr.h" #include "Utils/Patterns.h" #include "Utils/ScopedUnprotect.hpp" @@ -230,4 +230,4 @@ extern "C" __declspec(dllexport) uint32_t GetBuildNumber() { return (SILENTPATCH_REVISION_ID << 8) | SILENTPATCH_BUILD_ID; -} \ No newline at end of file +} diff --git a/SilentPatch/Common_ddraw.cpp b/SilentPatch/Common_ddraw.cpp index 62e1240..15e89a6 100644 --- a/SilentPatch/Common_ddraw.cpp +++ b/SilentPatch/Common_ddraw.cpp @@ -8,8 +8,8 @@ #include -#include -#include +#include +#include #include "Utils/MemoryMgr.h" #include "Utils/Patterns.h" @@ -249,4 +249,4 @@ namespace Common { TXN_CATCH(); } } -} \ No newline at end of file +} diff --git a/SilentPatch/ParseUtils.cpp b/SilentPatch/ParseUtils.cpp index 1988733..52f878c 100644 --- a/SilentPatch/ParseUtils.cpp +++ b/SilentPatch/ParseUtils.cpp @@ -2,7 +2,7 @@ #define WIN32_LEAN_AND_MEAN #define NOMINMAX -#include +#include static std::string WcharToUTF8(std::wstring_view str) { diff --git a/SilentPatch/TheFLAUtils.cpp b/SilentPatch/TheFLAUtils.cpp index 685280c..9cc3164 100644 --- a/SilentPatch/TheFLAUtils.cpp +++ b/SilentPatch/TheFLAUtils.cpp @@ -1,7 +1,7 @@ #include "TheFLAUtils.h" #define WIN32_LEAN_AND_MEAN -#include +#include #include "Utils/ModuleList.hpp" @@ -39,4 +39,4 @@ bool FLAUtils::UsesEnhancedIMGs() const auto func = reinterpret_cast(GetProcAddress( flaModule, "IsHandlingOfEnhancedIMGarchivesEnabled" )); if ( func == nullptr ) return false; return func(); -} \ No newline at end of file +} diff --git a/SilentPatchIII/SilentPatchIII.cpp b/SilentPatchIII/SilentPatchIII.cpp index e0c04e7..482be14 100644 --- a/SilentPatchIII/SilentPatchIII.cpp +++ b/SilentPatchIII/SilentPatchIII.cpp @@ -12,7 +12,7 @@ #include #include -#include +#include #include "Utils/ModuleList.hpp" #include "Utils/Patterns.h" @@ -2499,4 +2499,4 @@ extern "C" __declspec(dllexport) uint32_t GetBuildNumber() { return (SILENTPATCH_REVISION_ID << 8) | SILENTPATCH_BUILD_ID; -} \ No newline at end of file +} diff --git a/SilentPatchVC/SilentPatchVC.cpp b/SilentPatchVC/SilentPatchVC.cpp index 1da4a66..1eb8d56 100644 --- a/SilentPatchVC/SilentPatchVC.cpp +++ b/SilentPatchVC/SilentPatchVC.cpp @@ -16,7 +16,7 @@ #include #include -#include +#include #include #include "Utils/ModuleList.hpp" @@ -2982,4 +2982,4 @@ extern "C" __declspec(dllexport) uint32_t GetBuildNumber() { return (SILENTPATCH_REVISION_ID << 8) | SILENTPATCH_BUILD_ID; -} \ No newline at end of file +}