Skip to content

Commit 503d165

Browse files
Replace the includes of Windows.h with windows.h (#204) (#235)
When cross-compiling with MinGW, the compiler is unable to find the include of Windows.h because windows.h is provided instead. Replacing the includes of Windows.h with windows.h solves the issue and still works on Windows because the filesystem is case insensitive.
1 parent 985966e commit 503d165

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/internal/common.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# ifndef WIN32_LEAN_AND_MEAN
1414
# define WIN32_LEAN_AND_MEAN
1515
# endif
16-
# include <Windows.h>
16+
# include <windows.h>
1717
# undef max
1818
# undef min
1919
#elif defined(__linux__)

single_include/csv.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1831,7 +1831,7 @@ using shared_ummap_sink = basic_shared_mmap_sink<unsigned char>;
18311831
# ifndef WIN32_LEAN_AND_MEAN
18321832
# define WIN32_LEAN_AND_MEAN
18331833
# endif
1834-
# include <Windows.h>
1834+
# include <windows.h>
18351835
# undef max
18361836
# undef min
18371837
#elif defined(__linux__)

single_include_test/csv.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1831,7 +1831,7 @@ using shared_ummap_sink = basic_shared_mmap_sink<unsigned char>;
18311831
# ifndef WIN32_LEAN_AND_MEAN
18321832
# define WIN32_LEAN_AND_MEAN
18331833
# endif
1834-
# include <Windows.h>
1834+
# include <windows.h>
18351835
# undef max
18361836
# undef min
18371837
#elif defined(__linux__)

0 commit comments

Comments
 (0)