From 0694a66e8e5ad3c83f28a093add009ecc37d500b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 28 Feb 2022 14:10:55 +0100 Subject: [PATCH] Fix jurt/source/pipe/staticsalhack.cxx > jurt/source/pipe/staticsalhack.cxx:62: > sal/rtl/ustrbuf.cxx:29:9: error: 'RTL_LOG_STRING_BITS' macro redefined [-Werror,-Wmacro-redefined] > #define RTL_LOG_STRING_BITS 16 > ^ > sal/rtl/strbuf.cxx:27:9: note: previous definition is here > #define RTL_LOG_STRING_BITS 8 > ^ > In file included from jurt/source/pipe/staticsalhack.cxx:62: > sal/rtl/ustrbuf.cxx:29:9: error: duplicate defines [loplugin:duplicatedefines] > #define RTL_LOG_STRING_BITS 16 > ^ > sal/rtl/strbuf.cxx:27:9: note: previous define [loplugin:duplicatedefines] > #define RTL_LOG_STRING_BITS 8 > ^ after 22de5757a2c7c6cd4544a4699e5d4c69969f5961 "Deduplicate string buffer code" Change-Id: I5e6883effea0ce53c96cb5da8e02142450216ad4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130711 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- jurt/source/pipe/staticsalhack.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/jurt/source/pipe/staticsalhack.cxx b/jurt/source/pipe/staticsalhack.cxx index 78a44bba6bb1..ac83bd84fb59 100644 --- a/jurt/source/pipe/staticsalhack.cxx +++ b/jurt/source/pipe/staticsalhack.cxx @@ -17,10 +17,18 @@ #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 @@ -56,10 +64,8 @@ #include #include #include -#include #include #include -#include #include #include #include