From: Mike Hommey Date: Sun, 4 Jun 2023 21:19:34 +0000 (+0900) Subject: mingw: use lowercase includes for some Windows headers X-Git-Tag: v2.42.0-rc0~37^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a53d0d0bc1c04f012773d23e918ba45e96ddefb;p=thirdparty%2Fgit.git mingw: use lowercase includes for some Windows headers 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 Signed-off-by: Junio C Hamano --- diff --git a/compat/win32/trace2_win32_process_info.c b/compat/win32/trace2_win32_process_info.c index a4e33768f4..438af8f818 100644 --- a/compat/win32/trace2_win32_process_info.c +++ b/compat/win32/trace2_win32_process_info.c @@ -3,8 +3,8 @@ #include "../../repository.h" #include "../../trace2.h" #include "lazyload.h" -#include -#include +#include +#include /* * An arbitrarily chosen value to limit the size of the ancestor diff --git a/wrapper.c b/wrapper.c index 67f5f5dbe1..5dc48e815a 100644 --- 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 +#include #undef SystemFunction036 #endif