MSVC: fix poll-related macro redefines
commit09d3918d0354771d53c0a874751345d750678fda
authorErik Faye-Lund <kusmabite@gmail.com>
Tue, 1 Nov 2011 17:45:18 +0000 (1 12:45 -0500)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Sun, 29 Jan 2012 11:07:32 +0000 (29 11:07 +0000)
tree3aa4bac93fd7e317f659e0ae44e36e0999dac231
parentdd0f3a3c0f6df4779bddd95c8dd9045898d8f62b
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