diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-06-01 05:40:03 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-06-01 05:40:03 +0000 |
commit | a248138cedaa1095907e9f9177f613a1940ae377 (patch) | |
tree | b9135ebc8c97d3afe88d1fcd5296695f99961268 /src/pugixml.cpp | |
parent | 1f8ba5aa60cff9584b520e0b5311637e4bed36d5 (diff) |
Constant deprecation is disabled only on old IntelC, removed deprecation warnings with appropriate define instead of disabling warning via pragma
git-svn-id: http://pugixml.googlecode.com/svn/trunk@489 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r-- | src/pugixml.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 0706ef4..7f6e13a 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -11,6 +11,10 @@ * 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"
#if !defined(PUGIXML_NO_XPATH) && defined(PUGIXML_NO_EXCEPTIONS)
@@ -34,7 +38,6 @@ #ifdef _MSC_VER
# pragma warning(disable: 4127) // conditional expression is constant
-# pragma warning(disable: 4996) // this function or variable may be unsafe
#endif
#ifdef __BORLANDC__
|