summaryrefslogtreecommitdiffstats
path: root/addon
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-07-28 19:39:30 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-07-28 19:39:30 (GMT)
commit3747d952b269ec2b15b43f674d103851c54f66ca (patch)
treef6a072b9815f85080cbf0d81f7990ae972fa6c68 /addon
parentd103ea7f83588c29cec6d407e6fbc05ec6b2e5ba (diff)
downloadDoxygen-3747d952b269ec2b15b43f674d103851c54f66ca.zip
Doxygen-3747d952b269ec2b15b43f674d103851c54f66ca.tar.gz
Doxygen-3747d952b269ec2b15b43f674d103851c54f66ca.tar.bz2
Fixed two compilation issues
Diffstat (limited to 'addon')
-rw-r--r--addon/doxysearch/doxysearch.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/addon/doxysearch/doxysearch.cpp b/addon/doxysearch/doxysearch.cpp
index ac5740b..98adab4 100644
--- a/addon/doxysearch/doxysearch.cpp
+++ b/addon/doxysearch/doxysearch.cpp
@@ -374,7 +374,11 @@ int main(int argc,char **argv)
parser.set_default_op(Xapian::Query::OP_AND);
parser.set_stemming_strategy(Xapian::QueryParser::STEM_ALL);
Xapian::termcount max_expansion=100;
+#if (XAPIAN_MAJOR_VERSION==1) && (XAPIAN_MINOR_VERSION==2)
+ parser.set_max_wildcard_expansion(max_expansion);
+#else
parser.set_max_expansion(max_expansion,Xapian::Query::WILDCARD_LIMIT_MOST_FREQUENT);
+#endif
Xapian::Query query=parser.parse_query(searchFor,
Xapian::QueryParser::FLAG_DEFAULT |
Xapian::QueryParser::FLAG_WILDCARD |