X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fcxml.cc;h=c6ab5cce1a41f009796fa17eeb0da50b773d88a9;hb=refs%2Fheads%2Fmaster;hp=d4eb1388499a284f6333faec165def73e7b977b6;hpb=e35ec8a8035df820f0ab47dc80734bf558222062;p=libcxml.git 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);