From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- jurt/source/pipe/staticsalhack.cxx | 97 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 jurt/source/pipe/staticsalhack.cxx (limited to 'jurt/source/pipe/staticsalhack.cxx') diff --git a/jurt/source/pipe/staticsalhack.cxx b/jurt/source/pipe/staticsalhack.cxx new file mode 100644 index 000000000..ac83bd84f --- /dev/null +++ b/jurt/source/pipe/staticsalhack.cxx @@ -0,0 +1,97 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#define NO_CHILD_PROCESSES +#undef SAL_LOG_INFO +#undef SAL_LOG_WARN + +#include + +#include + +#include + +#include +#if USE_SDT_PROBES +#undef RTL_LOG_STRING_BITS +#endif +#include +#if USE_SDT_PROBES +#undef RTL_LOG_STRING_BITS +#endif +#include +#if USE_SDT_PROBES +#undef RTL_LOG_STRING_BITS +#endif +#include +#if USE_SDT_PROBES +#undef RTL_LOG_STRING_BITS +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined MACOSX +#include +#include +#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(); +} + +#pragma clang diagnostic ignored "-Weverything" +extern "C" { +#include // workdir/UnpackedTarball/dtoa/src/dtoa.c +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3