summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-03-19 19:20:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-03-19 19:20:40 (GMT)
commit9b79956018fafb97da82839148d3ea2acd3e5959 (patch)
tree25d7b1a50bc3510a6a6c98ffb44f34e12932a97d /git-compat-util.h
parent31ccd35df4b7599c83fe46669ca36ca2c4fb3caa (diff)
parente0492c5be123ca264a5477e3481a8a765fe9ae99 (diff)
downloadgit-9b79956018fafb97da82839148d3ea2acd3e5959.zip
git-9b79956018fafb97da82839148d3ea2acd3e5959.tar.gz
git-9b79956018fafb97da82839148d3ea2acd3e5959.tar.bz2
Merge branch 'rj/msvc-build'
* rj/msvc-build: msvc: avoid collisions between "tags" and "TAGS" msvc: test-svn-fe: Fix linker "unresolved external" error msvc: Fix build by adding missing symbol defines msvc: git-daemon: Fix linker "unresolved external" errors msvc: Fix compilation errors caused by poll.h emulation
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index e715285..90e0372 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -86,6 +86,9 @@
#define _SGI_SOURCE 1
#ifdef WIN32 /* Both MinGW and MSVC */
+# if defined (_MSC_VER)
+# define _WIN32_WINNT 0x0502
+# endif
#define WIN32_LEAN_AND_MEAN /* stops windows.h including winsock.h */
#include <winsock2.h>
#include <windows.h>