Explorar o código

Silence some MSVC warnings.

Miku AuahDark hai 1 ano
pai
achega
e9d935350c
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/common/config.h

+ 5 - 0
src/common/config.h

@@ -1,5 +1,10 @@
 #pragma once
 #pragma once
 
 
+// MSVC warnings
+#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
+	#define _CRT_SECURE_NO_WARNINGS
+#endif
+
 #if defined(HTTPS_HAVE_CONFIG_GENERATED_H)
 #if defined(HTTPS_HAVE_CONFIG_GENERATED_H)
 	#include "common/config-generated.h"
 	#include "common/config-generated.h"
 #elif defined(WIN32) || defined(_WIN32)
 #elif defined(WIN32) || defined(_WIN32)