MSVC: fix poll-related macro redefines
commitd8c31c631e3af7e1f4dd30c8cc9baddc77b11f2f
authorErik Faye-Lund <kusmabite@gmail.com>
Tue, 1 Nov 2011 17:45:18 +0000 (1 12:45 -0500)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 30 Mar 2012 18:42:39 +0000 (30 13:42 -0500)
tree5e5cbd2db788f796b7f7d27d3cc98765c8e5102f
parent2d764c8659ceeee8bdf7a6917188cbcb060d83cd
MSVC: fix poll-related macro redefines

This seems to be related to the poll-emulation... I see that these things
are guarded by an "#if(_WIN32_WINNT >= 0x0600)" in <winsock2.h>, which
means it's supported for Windows Vista and above... We still support
Windows XP, so it seems someone has set this too high :)

I'd prefer to set this from the Makefile, but this generates a warning in
compat/win32/poll.c about redefining a macro (poll.c wants it to be 0x502,
which is Windows XP with SP2, rather than 0x501 which is normal Windows
XP).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
compat/mingw.h
git-compat-util.h