]> git.ipfire.org Git - thirdparty/git.git/commitdiff
mingw: use lowercase includes for some Windows headers
authorMike Hommey <mh@glandium.org>
Sun, 4 Jun 2023 21:19:34 +0000 (06:19 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Jun 2023 19:31:52 +0000 (12:31 -0700)
When cross-compiling with the mingw toolchain on a system with a case
sensitive filesystem, the mixed case (which is technically correct as
per the contents of MS Visual C++) doesn't work (the corresponding mingw
headers are all lowercase for some reason).

Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/win32/trace2_win32_process_info.c
wrapper.c

index a4e33768f432d329746508853fe6021ed91f48a6..438af8f818c6727ed6c2f23d5479c54473000b69 100644 (file)
@@ -3,8 +3,8 @@
 #include "../../repository.h"
 #include "../../trace2.h"
 #include "lazyload.h"
-#include <Psapi.h>
-#include <tlHelp32.h>
+#include <psapi.h>
+#include <tlhelp32.h>
 
 /*
  * An arbitrarily chosen value to limit the size of the ancestor
index 67f5f5dbe199f8362cad205a19f968687cb2906b..5dc48e815aa7e61d9d536340d78c4861d52942fc 100644 (file)
--- a/wrapper.c
+++ b/wrapper.c
@@ -17,7 +17,7 @@ static intmax_t count_fsync_hardware_flush;
 #ifdef HAVE_RTLGENRANDOM
 /* This is required to get access to RtlGenRandom. */
 #define SystemFunction036 NTAPI SystemFunction036
-#include <NTSecAPI.h>
+#include <ntsecapi.h>
 #undef SystemFunction036
 #endif