diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-08-31 12:32:21 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-08-31 12:32:21 +0000 |
commit | 530b0dec2169e23b65bf160e2b4074f4b78d733b (patch) | |
tree | 4011fd6b22d09c4c83e83d1dfb657af8cc0cd6ed | |
parent | 7797d49ed6165785a9264e1d7266c3b63e534ee2 (diff) |
Fixed xml_node::all_elements_by_name include dependencies
git-svn-id: http://pugixml.googlecode.com/svn/trunk@124 99668b35-9821-0410-8761-19e4c4f06640
-rw-r--r-- | src/pugixml.cpp | 6 | ||||
-rw-r--r-- | src/pugixml.hpp | 3 |
2 files changed, 8 insertions, 1 deletions
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; |