From 530b0dec2169e23b65bf160e2b4074f4b78d733b Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Mon, 31 Aug 2009 12:32:21 +0000 Subject: Fixed xml_node::all_elements_by_name include dependencies git-svn-id: http://pugixml.googlecode.com/svn/trunk@124 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 6 ++++++ src/pugixml.hpp | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/pugixml.cpp b/src/pugixml.cpp index ea37320..17dbddd 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -1684,6 +1684,12 @@ namespace pugi { namespace impl { + // Compare two strings + int strcmp(const char* src, const char* dst) + { + return ::strcmp(src, dst); + } + // Compare two strings, with globbing, and character sets. int strcmpwild(const char* src, const char* dst) { diff --git a/src/pugixml.hpp b/src/pugixml.hpp index 441b0fe..9a2fe5a 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -1947,6 +1947,7 @@ namespace pugi { namespace impl { + int strcmp(const char*, const char*); int strcmpwild(const char*, const char*); } @@ -1958,7 +1959,7 @@ namespace pugi { if (node.type() == node_element) { - if (!strcmp(name, node.name())) + if (!impl::strcmp(name, node.name())) { *it = node; ++it; -- cgit v1.2.3