Explorar o código

Merge pull request #159 from aerotech/master

_CRT_SECURE_NO_WARNINGS should not generate a warning if already defined
Sergey Lyubka %!s(int64=12) %!d(string=hai) anos
pai
achega
ce26234ace
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      mongoose.c

+ 2 - 0
mongoose.c

@@ -19,7 +19,9 @@
 // THE SOFTWARE.
 
 #if defined(_WIN32)
+#if !defined(_CRT_SECURE_NO_WARNINGS)
 #define _CRT_SECURE_NO_WARNINGS // Disable deprecation warning in VS2005
+#endif
 #else
 #ifdef __linux__
 #define _XOPEN_SOURCE 600     // For flockfile() on Linux