Skip to content

Commit 7aa56c5

Browse files
authored
Merge pull request #169 from cscd98/mingw-fixes
mingw: lower case more Windows.h includes when using ming
2 parents 858a7a6 + a8752fd commit 7aa56c5

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

src/libipc/platform/win/codecvt.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
*/
55
#pragma once
66

7+
#if defined(__MINGW32__)
8+
#include <windows.h>
9+
#else
710
#include <Windows.h>
11+
#endif
812

913
#include "libipc/imp/codecvt.h"
1014
#include "libipc/imp/detect_plat.h"

src/libipc/platform/win/system.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
#include <exception>
88
#include <type_traits>
99

10+
#if defined(__MINGW32__)
11+
#include <windows.h>
12+
#else
1013
#include <Windows.h>
14+
#endif
1115
#include <tchar.h>
1216

1317
#include "libipc/imp/system.h"

test/archive/test_sync.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ TEST(PThread, Robust) {
3737
pthread_mutex_destroy(&mutex);
3838
}
3939
#elif defined(LIBIPC_OS_WIN)
40+
#if defined(__MINGW32__)
41+
#include <windows.h>
42+
#else
4043
#include <Windows.h>
41-
#include <Windows.h>
44+
#endif
4245
#endif
4346
#include <tchar.h>
4447

0 commit comments

Comments
 (0)