msvc: Fix build by adding missing symbol defines
[gitweb.git] / git-compat-util.h
index b7eaaa99a802018a657e81e4421e40fb806b97b3..490afb6af457430ec28e3d70050ff12787f6cd7d 100644 (file)
@@ -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>