[PATCH 03/12] mingw: drop the -D_USE_32BIT_TIME_T option
"Johannes Schindelin via GitGitGadget" <[email protected]> Wed, 05 Aug 2026 14:26:29 +0000
| Newsgroups | org.kernel.vger.git |
|---|---|
| Message-ID | <53f1fd576379a7331e827a2384605a1445f85d86.1785939999.git.gitgitgadget@gmail.com> |
From: Johannes Schindelin <[email protected]> This option was added in fa93bb20d72 (MinGW: Fix stat definitions to work with MinGW runtime version 4.0, 2013-09-11), i.e. a _long_ time ago. So long, in fact, that it still targeted MinGW. But we switched to mingw-w64 in 2015, which seems not to share the problem, and therefore does not require a fix. Even worse: This flag is incompatible with UCRT64, which we are about to support by way of upstreaming `mingw-w64-git` to the MSYS2 project, see https://github.com/msys2/MINGW-packages/pull/26470 for details. So let's send that option into its well-deserved retirement. Signed-off-by: Johannes Schindelin <[email protected]> --- config.mak.uname | 1 - 1 file changed, 1 deletion(-) diff --git a/config.mak.uname b/config.mak.uname index a464b2009c..cc0ed63af3 100644 --- a/config.mak.uname +++ b/config.mak.uname @@ -768,7 +768,6 @@ ifeq ($(uname_S),MINGW) HOST_CPU = aarch64 BASIC_LDFLAGS += -Wl,--pic-executable,-e,mainCRTStartup else - COMPAT_CFLAGS += -D_USE_32BIT_TIME_T BASIC_LDFLAGS += -Wl,--large-address-aware endif COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO=0 -DDETECT_MSYS_TTY \ -- gitgitgadget