diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/configure.ac | 4 | ||||
-rw-r--r-- | cpp/src/qpid/xml/XmlExchange.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/cpp/configure.ac b/cpp/configure.ac index fee657e0b0..efa38d021f 100644 --- a/cpp/configure.ac +++ b/cpp/configure.ac @@ -370,8 +370,8 @@ if test $use_xml != no; then # Check to see if we need to use legacy calls for effective boolean value xqilla_has_ebv=yes AC_CHECK_HEADER([xqilla/ast/XQEffectiveBooleanValue.hpp], , [xqilla_has_ebv=no]) - test $xqilla_has_ebv = no && - AC_DEFINE([XQILLA_2_1_3], [1], [Use the old XQilla 2.1.3 API to get effective boolean value.]) + test $xqilla_has_ebv = yes && + AC_DEFINE([XQ_EFFECTIVE_BOOLEAN_VALUE_HPP], [1], [XQilla version has xqilla/ast/XQEffectiveBooleanValue.hpp.]) fi diff --git a/cpp/src/qpid/xml/XmlExchange.cpp b/cpp/src/qpid/xml/XmlExchange.cpp index b62245b6eb..fbf7566a18 100644 --- a/cpp/src/qpid/xml/XmlExchange.cpp +++ b/cpp/src/qpid/xml/XmlExchange.cpp @@ -34,7 +34,7 @@ #include <xercesc/framework/MemBufInputSource.hpp> -#ifndef XQILLA_2_1_3 +#ifdef XQ_EFFECTIVE_BOOLEAN_VALUE_HPP #include <xqilla/ast/XQEffectiveBooleanValue.hpp> #endif @@ -184,11 +184,11 @@ bool XmlExchange::matches(Query& query, Deliverable& msg, const qpid::framing::F } Result result = query->execute(context.get()); -#ifndef XQILLA_2_1_3 +#ifdef XQ_EFFECTIVE_BOOLEAN_VALUE_HPP Item::Ptr first_ = result->next(context.get()); Item::Ptr second_ = result->next(context.get()); return XQEffectiveBooleanValue::get(first_, second_, context.get(), 0); -#else +#else return result->getEffectiveBooleanValue(context.get(), 0); #endif } |