Explorar o código

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

bel %!s(int64=9) %!d(string=hai) anos
pai
achega
acdec461ab
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      test/civetweb_check.h

+ 7 - 0
test/civetweb_check.h

@@ -40,6 +40,13 @@
 #pragma clang diagnostic pop
 #pragma clang diagnostic pop
 #endif
 #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. */
 /* A minimal timeout used for all tests with the "check" framework. */
 #define civetweb_min_test_timeout (30)
 #define civetweb_min_test_timeout (30)