Browse Source

Disable `Microsoft does not like standard C library functions` warning for all tests

bel 9 years ago
parent
commit
acdec461ab
1 changed files with 7 additions and 0 deletions
  1. 7 0
      test/civetweb_check.h

+ 7 - 0
test/civetweb_check.h

@@ -40,6 +40,13 @@
 #pragma clang diagnostic pop
 #endif
 
+#if !defined(_CRT_SECURE_NO_WARNINGS)
+#define _CRT_SECURE_NO_WARNINGS
+#endif
+#if !defined(_CRT_SECURE_NO_DEPRECATE)
+#define _CRT_SECURE_NO_DEPRECATE
+#endif
+
 /* A minimal timeout used for all tests with the "check" framework. */
 #define civetweb_min_test_timeout (30)