diff options
Diffstat (limited to 'src')
-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; |