summaryrefslogtreecommitdiff
path: root/jurt/source/pipe/staticsalhack.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'jurt/source/pipe/staticsalhack.cxx')
-rw-r--r--jurt/source/pipe/staticsalhack.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/jurt/source/pipe/staticsalhack.cxx b/jurt/source/pipe/staticsalhack.cxx
index 23afde168bda..a527d0965ce4 100644
--- a/jurt/source/pipe/staticsalhack.cxx
+++ b/jurt/source/pipe/staticsalhack.cxx
@@ -13,6 +13,10 @@
#undef SAL_LOG_INFO
#undef SAL_LOG_WARN
+#include <sal/config.h>
+
+#include <cstdlib>
+
#include <sal/rtl/string.cxx>
#include <sal/rtl/ustring.cxx>
@@ -57,4 +61,19 @@
#include <sal/textenc/textenc.cxx>
#include <sal/textenc/unichars.cxx>
+#if defined MACOSX
+#include <sal/osl/unx/osxlocale.cxx>
+#include <sal/osl/unx/system.cxx>
+#endif
+
+// Called from FullTextEncodingData::get in sal/textenc/textenc.cxx, but only
+// defined for ANDROID (in ANDROID-specific sal/textenc/tables.cxx); would even
+// work to leave it undefined for LINUX due to no '-z defs' under -fsanitize=*
+// (solenv/gbuild/platform/linux.mk), but not for MACOSX:
+extern "C" ImplTextEncodingData const * sal_getFullTextEncodingData(
+ rtl_TextEncoding)
+{
+ std::abort();
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */