Skip to content

Commit

Permalink
Replace the includes of Windows.h with windows.h (#204)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ludovicdelfau committed Jun 7, 2024
1 parent 985966e commit 240db49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/internal/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif
# include <Windows.h>
# include <windows.h>
# undef max
# undef min
#elif defined(__linux__)
Expand Down
2 changes: 1 addition & 1 deletion single_include/csv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,7 @@ using shared_ummap_sink = basic_shared_mmap_sink<unsigned char>;
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif
# include <Windows.h>
# include <windows.h>
# undef max
# undef min
#elif defined(__linux__)
Expand Down
2 changes: 1 addition & 1 deletion single_include_test/csv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,7 @@ using shared_ummap_sink = basic_shared_mmap_sink<unsigned char>;
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif
# include <Windows.h>
# include <windows.h>
# undef max
# undef min
#elif defined(__linux__)
Expand Down

0 comments on commit 240db49

Please sign in to comment.