Browse Source

Fix another 'Mircosoft does not like standard C' warning

bel 10 years ago
parent
commit
e535313be9
2 changed files with 5 additions and 0 deletions
  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>