Merge pull request #169 from cscd98/mingw-fixes

mingw: lower case more Windows.h includes when using ming
This commit is contained in:
木头云 2026-01-07 23:41:42 +08:00 committed by GitHub
commit 7aa56c5f01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 1 deletions

View File

@ -4,7 +4,11 @@
*/ */
#pragma once #pragma once
#if defined(__MINGW32__)
#include <windows.h>
#else
#include <Windows.h> #include <Windows.h>
#endif
#include "libipc/imp/codecvt.h" #include "libipc/imp/codecvt.h"
#include "libipc/imp/detect_plat.h" #include "libipc/imp/detect_plat.h"

View File

@ -7,7 +7,11 @@
#include <exception> #include <exception>
#include <type_traits> #include <type_traits>
#if defined(__MINGW32__)
#include <windows.h>
#else
#include <Windows.h> #include <Windows.h>
#endif
#include <tchar.h> #include <tchar.h>
#include "libipc/imp/system.h" #include "libipc/imp/system.h"

View File

@ -37,8 +37,11 @@ TEST(PThread, Robust) {
pthread_mutex_destroy(&mutex); pthread_mutex_destroy(&mutex);
} }
#elif defined(LIBIPC_OS_WIN) #elif defined(LIBIPC_OS_WIN)
#if defined(__MINGW32__)
#include <windows.h>
#else
#include <Windows.h> #include <Windows.h>
#include <Windows.h> #endif
#endif #endif
#include <tchar.h> #include <tchar.h>