From ca5d684a2b0f5fb694284ac173c506e2b5bfcdae Mon Sep 17 00:00:00 2001 From: Serhat Eser Erdem Date: Thu, 17 Apr 2014 14:06:15 +0200 Subject: [PATCH] Fixed _CRT_SECURE_NO_WARNINGS macro redefinition warning --- xmltest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xmltest.cpp b/xmltest.cpp index 6fdc162..55b597d 100644 --- a/xmltest.cpp +++ b/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"