Use lowercase names for Windows headers

This fixes missing header issues on a case-sensitive filesystem
with MinGW GCC
This commit is contained in:
Echo J 2024-11-04 15:35:25 +02:00
parent 4c78e857f0
commit a360f693d3
9 changed files with 18 additions and 18 deletions

View file

@ -4,8 +4,8 @@
#include <windows.h>
#include <stdio.h>
#include <Shlwapi.h>
#include <ShlObj.h>
#include <shlwapi.h>
#include <shlobj.h>
#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;
}
}

View file

@ -8,8 +8,8 @@
#include <windows.h>
#include <Shlwapi.h>
#include <ShlObj.h>
#include <shlwapi.h>
#include <shlobj.h>
#include "Utils/MemoryMgr.h"
#include "Utils/Patterns.h"

View file

@ -2,7 +2,7 @@
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#include <Windows.h>
#include <windows.h>
static std::string WcharToUTF8(std::wstring_view str)
{

View file

@ -1,7 +1,7 @@
#include "TheFLAUtils.h"
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <windows.h>
#include "Utils/ModuleList.hpp"
@ -39,4 +39,4 @@ bool FLAUtils::UsesEnhancedIMGs()
const auto func = reinterpret_cast<bool(*)()>(GetProcAddress( flaModule, "IsHandlingOfEnhancedIMGarchivesEnabled" ));
if ( func == nullptr ) return false;
return func();
}
}

View file

@ -12,7 +12,7 @@
#include <array>
#include <memory>
#include <Shlwapi.h>
#include <shlwapi.h>
#include "Utils/ModuleList.hpp"
#include "Utils/Patterns.h"

View file

@ -2,7 +2,7 @@
#define __AUDIOHARDWARE
// IStream
#include <Objidl.h>
#include <objidl.h>
enum eDecoderType
{
@ -205,4 +205,4 @@ public:
static_assert(sizeof(CAEDataStreamOld) == 0x28, "Wrong size: CAEDataStreamOld");
static_assert(sizeof(CAEDataStreamNew) == 0x2C, "Wrong size: CAEDataStreamNew");
#endif
#endif

View file

@ -3,8 +3,8 @@
#include "AudioHardwareSA.h"
// libflac
#include "FLAC\stream_decoder.h"
#include "FLAC\metadata.h"
#include "FLAC/stream_decoder.h"
#include "FLAC/metadata.h"
class CAEFLACDecoder final : public CAEStreamingDecoder
{
@ -45,4 +45,4 @@ public:
{ return m_streamMeta->data.stream_info.sample_rate; }
virtual uint32_t GetStreamID() const override
{ return GetStream()->GetID(); }
};
};

View file

@ -3,9 +3,9 @@
#include <algorithm>
#include <array>
#include <d3d9.h>
#include <Shlwapi.h>
#include <ShlObj.h>
#include <ShellAPI.h>
#include <shlwapi.h>
#include <shlobj.h>
#include <shellapi.h>
#include <cinttypes>
#include "ScriptSA.h"

View file

@ -16,7 +16,7 @@
#include <array>
#include <memory>
#include <Shlwapi.h>
#include <shlwapi.h>
#include <time.h>
#include "Utils/ModuleList.hpp"