Browse Source

Fix another 'Mircosoft does not like standard C' warning

bel 10 năm trước cách đây
mục cha
commit
e535313be9
2 tập tin đã thay đổi với 5 bổ sung0 xóa
  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>