Explorar el Código

removing warning about _CRT_SECURE_NO_WARNINGS if it is already defined

	modified:   mongoose.c
Pavel hace 12 años
padre
commit
c28dc45d4c
Se han modificado 1 ficheros con 2 adiciones y 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