From cd9ae93c3e7ce34c564bb637c043647164f92105 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Wed, 21 Aug 2024 18:18:51 +0200 Subject: [PATCH] Fix boost::regex ICU support --- configure.ac | 2 +- src/regex_filter.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index c144ab28..ffe1bd10 100644 --- a/configure.ac +++ b/configure.ac @@ -152,7 +152,7 @@ PKG_CHECK_MODULES([ICU], [icu-i18n icu-uc], [ old_LIBS="$LIBS" AC_SUBST(ICU_CFLAGS) AC_SUBST(ICU_LIBS) - CPPFLAGS="$CPPFLAGS $ICU_CFLAGS -DU_USING_ICU_NAMESPACE=0" + CPPFLAGS="$CPPFLAGS $ICU_CFLAGS" LIBS="$LIBS $ICU_LIBS" AC_MSG_CHECKING([whether boost.regex was compiled with ICU support]) AC_LINK_IFELSE([AC_LANG_PROGRAM([ diff --git a/src/regex_filter.h b/src/regex_filter.h index 0e09721d..31cd9e47 100644 --- a/src/regex_filter.h +++ b/src/regex_filter.h @@ -93,7 +93,7 @@ inline Regex make(StringT &&s, template inline bool search(const std::basic_string &s, const Regex &rx, - [[maybe_unused]] bool ignore_diacritics) + bool ignore_diacritics) { try { #ifdef BOOST_REGEX_ICU