diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/cxml.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cxml.cc b/src/cxml.cc index d4eb138..c6ab5cc 100644 --- a/src/cxml.cc +++ b/src/cxml.cc @@ -478,7 +478,7 @@ cxml::raw_convert (string v) xmlpp::Element* cxml::add_child(xmlpp::Element* parent, string const& name, string const& ns_prefix) { -#if LIBXMLXX_MAJOR_VERSION == 2 +#if !defined(LIBXMLXX_MAJOR_VERSION) || LIBXMLXX_MAJOR_VERSION == 2 return parent->add_child(name, ns_prefix); #else return parent->add_child_element(name, ns_prefix); |
