]> git.99rst.org Git - git.git/commit
clar: avoid compile error with mingw-w64
authorJohannes Schindelin <redacted>
Wed, 4 Sep 2024 14:16:54 +0000 (16:16 +0200)
committerJunio C Hamano <redacted>
Wed, 4 Sep 2024 15:41:36 +0000 (08:41 -0700)
commit42020d2dc01d552c9f034c691d25f726735ab3c5
treef760261cc8018f8978f18392349060fb423ac141
parentaa57db2822e585b623c21dc5f38fda272f272849
clar: avoid compile error with mingw-w64

When using mingw-w64 to compile the code, and using `_stat()`, it is
necessary to use `struct _stat`, too, and not `struct stat` (as the
latter is incompatible with the "dashed" version because it is limited
to 32-bit time types for backwards compatibility).

Signed-off-by: Johannes Schindelin <redacted>
Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/unit-tests/clar/clar.c
git clone https://git.99rst.org/PROJECT