]> asedeno.scripts.mit.edu Git - git.git/blobdiff - git-compat-util.h
Make usage of windows.h lean and mean
[git.git] / git-compat-util.h
index 8ea444fdc01c791c2a299b340d42261101124496..8d6e29cdeadfe146f4542c0b2b8ba803dedd2293 100644 (file)
 #define _NETBSD_SOURCE 1
 #define _SGI_SOURCE 1
 
+#ifdef WIN32 /* Both MinGW and MSVC */
+#define WIN32_LEAN_AND_MEAN  /* stops windows.h including winsock.h */
+#include <winsock2.h>
+#include <windows.h>
+#endif
+
 #include <unistd.h>
 #include <stdio.h>
 #include <sys/stat.h>