diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-03-23 15:12:57 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-03-23 15:12:57 +0100 |
| commit | 516d5dd036cb12b4fa03b746e90a414fcf419ebb (patch) | |
| tree | 3e3442a70bac40d5a34cff22772d3d954b22a436 /src | |
| parent | e35ec8a8035df820f0ab47dc80734bf558222062 (diff) | |
Some platforms don't even have libxml++ version defines.v0.17.9
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); |
