void-packages/srcpkgs/libreoffice/patches/boost-1.81.patch

19 lines
851 B
Diff

Index: libreoffice-7.4.2.3/unotools/source/i18n/resmgr.cxx
===================================================================
--- libreoffice-7.4.2.3.orig/unotools/source/i18n/resmgr.cxx
+++ libreoffice-7.4.2.3/unotools/source/i18n/resmgr.cxx
@@ -127,8 +127,13 @@ namespace Translate
if (aFind != aCache.end())
return aFind->second;
boost::locale::generator gen;
+#if BOOST_VERSION < 108100
gen.characters(boost::locale::char_facet);
gen.categories(boost::locale::message_facet | boost::locale::information_facet);
+#else
+ gen.characters(boost::locale::char_facet_t::char_f);
+ gen.categories(boost::locale::category_t::message | boost::locale::category_t::information);
+#endif
#if defined(ANDROID)
OString sPath(OString(lo_get_app_data_dir()) + "/program/resource");
#else