소스 검색

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