소스 검색

Fix another 'Mircosoft does not like standard C' warning

bel 10 년 전
부모
커밋
e535313be9
2개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      test/private.c
  2. 4 0
      test/public.c

+ 1 - 0
test/private.c

@@ -24,6 +24,7 @@
  * static functions
  */
 #ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
 #define CIVETWEB_API static
 #endif
 #include "../src/civetweb.c"

+ 4 - 0
test/public.c

@@ -19,6 +19,10 @@
  * THE SOFTWARE.
  */
 
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
+
 #include <stdlib.h>
 #include <time.h>