compat/mingw: support MSys2-based MinGW build
commit3ecd153a3bdbefb25a4bf451d7b91cf8f1ece2a9
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 14 Jan 2016 16:51:59 +0000 (14 17:51 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Jan 2016 20:20:54 +0000 (14 12:20 -0800)
treeb8fcc4acc9e48eacefce19cdf50e688eefe1a544
parent9e2af084d4326ea2b1192074fb1d1ccefe0016a3
compat/mingw: support MSys2-based MinGW build

The excellent MSys2 project brings a substantially updated MinGW
environment including newer GCC versions and new headers. To support
compiling Git, let's special-case the new MinGW (tell-tale: the
_MINGW64_VERSION_MAJOR constant is defined).

Note: this commit only addresses compile failures, not compile warnings
(that task is left for a future patch).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.h