From 0e84a0b5f4550ceb467afb78babecd678cd1d0c3 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sat, 19 Jun 2010 18:08:18 +0000 Subject: Replaced _CRT_SECURE macros with #pragma to avoid warnings because of multiple macro definitions/forced includes git-svn-id: http://pugixml.googlecode.com/svn/trunk@526 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/pugixml.cpp') diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 51b7791..7de240f 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -11,10 +11,6 @@ * Copyright (C) 2003, by Kristen Wegner (kristen@tima.net) */ -#ifdef _MSC_VER -# define _CRT_SECURE_NO_WARNINGS // disable deprecation warnings for CRT functions -#endif - #include "pugixml.hpp" #include @@ -36,6 +32,7 @@ #ifdef _MSC_VER # pragma warning(disable: 4127) // conditional expression is constant # pragma warning(disable: 4611) // interaction between '_setjmp' and C++ object destruction is non-portable +# pragma warning(disable: 4996) // this function or variable may be unsafe #endif #ifdef __INTEL_COMPILER -- cgit v1.2.3