Parcourir la source

Update civetweb.c

Update the defines to compile clean in Windows.  The last edit were not correct.
grenclave il y a 11 ans
Parent
commit
88d8259e40
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/civetweb.c

+ 2 - 2
src/civetweb.c

@@ -42,11 +42,11 @@
 
 // Disable WIN32_LEAN_AND_MEAN.
 // This makes windows.h always include winsock2.h
-#ifdef WIN32_LEAN_AND_MEAN
+#if defined(WIN32_LEAN_AND_MEAN) && (_MSC_VER <= 1400)
 #undef WIN32_LEAN_AND_MEAN
 #endif
 
-#ifdef USE_IPV6 && defined(_MSC_VER)
+#if defined USE_IPV6 && defined(_WIN32)
 #include <ws2tcpip.h>
 #endif