Parcourir la source

Fixed _CRT_SECURE_NO_WARNINGS macro redefinition warning

Serhat Eser Erdem il y a 12 ans
Parent
commit
ca5d684a2b
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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"