summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-31 16:12:16 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-31 16:12:16 +0000
commit18848ef589e6a476fb0082a2fa02b54429c90734 (patch)
tree59a03a89ff7ce2a717fa7e2250aa33e33729b03d
parentd8b256203c01eaa8ce7b54e296ff33bd1afaf583 (diff)
Fixed DMC compilation
git-svn-id: http://pugixml.googlecode.com/svn/trunk@484 99668b35-9821-0410-8761-19e4c4f06640
-rw-r--r--src/pugixpath.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pugixpath.cpp b/src/pugixpath.cpp
index 991b212..6262ff3 100644
--- a/src/pugixpath.cpp
+++ b/src/pugixpath.cpp
@@ -2675,6 +2675,10 @@ namespace pugi
}
throw xpath_exception("Unrecognized function or wrong parameter count");
+
+ #ifdef __DMC__
+ return 0; // Digital Mars C++
+ #endif
}
axis_t parse_axis_name(const xpath_lexer_string& name, bool& specified)
@@ -2820,7 +2824,7 @@ namespace pugi
case lex_string:
{
- xpath_ast_node* args[4] = {};
+ xpath_ast_node* args[4] = {0};
size_t argc = 0;
xpath_lexer_string function = m_lexer.contents();