Explorar el Código

Fixed _CRT_SECURE_NO_WARNINGS macro redefinition warning

Serhat Eser Erdem hace 12 años
padre
commit
ca5d684a2b
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      xmltest.cpp

+ 3 - 1
xmltest.cpp

@@ -1,5 +1,7 @@
 #if defined( _MSC_VER )
-	#define _CRT_SECURE_NO_WARNINGS		// This test file is not intended to be secure.
+	#if !defined( _CRT_SECURE_NO_WARNINGS )
+		#define _CRT_SECURE_NO_WARNINGS		// This test file is not intended to be secure.
+	#endif
 #endif
 
 #include "tinyxml2.h"