]> git.ipfire.org Git - thirdparty/git.git/commit
meson: fix compat sources when compiling with MSVC
authorPatrick Steinhardt <ps@pks.im>
Thu, 20 Mar 2025 10:37:46 +0000 (11:37 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Mar 2025 11:11:15 +0000 (04:11 -0700)
commit871491f7ade026a198af054633ebfeecf23c44fe
treed61b45a682006fcf81311bc9fdcfd2c59524e9ae
parent4b68faf6b93311254efad80e554780e372deb42f
meson: fix compat sources when compiling with MSVC

In our compat library we have both "msvc.c" and "mingw.c". The former is
mostly a thin wrapper around the latter as it directly includes it, but
it has a couple of extra headers that aren't included in "mingw.c" and
is expected to be used with the Visual Studio compiler toolchain.

While our Makefile knows to pick up the correct file depending on
whether or not the Visual Studio toolchain is used, we don't do the same
with Meson. Fix this.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
meson.build