1
0
Эх сурвалжийг харах

Fixed _CRT_SECURE_NO_WARNINGS macro redefinition warning

Serhat Eser Erdem 12 жил өмнө
parent
commit
ca5d684a2b
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  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"