浏览代码

Update civetweb.c

Update the defines to compile clean in Windows.  The last edit were not correct.
grenclave 11 年之前
父节点
当前提交
c493761ac1
共有 1 个文件被更改,包括 2 次插入2 次删除
  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