From 8672eca430213c28936a526df6266226ecb7ab2d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 6 Jan 2015 14:35:18 +0100 Subject: -Werror,-Wmacro-redefined (under Clang -fsanitize=*) Change-Id: Ifd23373b1ac4919793d1b4251ed90cf2dd6f2bda --- jurt/source/pipe/staticsalhack.cxx | 7 ------- sal/rtl/string.cxx | 9 +++++++++ sal/rtl/ustring.cxx | 9 +++++++++ 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/jurt/source/pipe/staticsalhack.cxx b/jurt/source/pipe/staticsalhack.cxx index b2c10d4dc6f9..23afde168bda 100644 --- a/jurt/source/pipe/staticsalhack.cxx +++ b/jurt/source/pipe/staticsalhack.cxx @@ -14,13 +14,6 @@ #undef SAL_LOG_WARN #include -#undef IMPL_RTL_EMPTYSTRING -#undef IMPL_RTL_STRCODE -#undef IMPL_RTL_STRINGDATA -#undef IMPL_RTL_STRINGNAME -#undef IMPL_RTL_STRNAME -#undef IMPL_RTL_USTRCODE -#undef RTL_LOG_STRING_BITS #include #include diff --git a/sal/rtl/string.cxx b/sal/rtl/string.cxx index 07842ecc594c..a71ba162d64e 100644 --- a/sal/rtl/string.cxx +++ b/sal/rtl/string.cxx @@ -76,6 +76,15 @@ static rtl_String const aImplEmpty_rtl_String = #include "strtmpl.cxx" +#undef IMPL_RTL_EMPTYSTRING +#undef IMPL_RTL_IS_USTRING +#undef IMPL_RTL_STRCODE +#undef IMPL_RTL_STRINGDATA +#undef IMPL_RTL_STRINGNAME +#undef IMPL_RTL_STRNAME +#undef IMPL_RTL_USTRCODE +#undef RTL_LOG_STRING_BITS + sal_Int32 SAL_CALL rtl_str_valueOfFloat(sal_Char * pStr, float f) SAL_THROW_EXTERN_C() { diff --git a/sal/rtl/ustring.cxx b/sal/rtl/ustring.cxx index a9406d859b63..082842523e81 100644 --- a/sal/rtl/ustring.cxx +++ b/sal/rtl/ustring.cxx @@ -84,6 +84,15 @@ static void internRelease (rtl_uString *pThis); #include "strtmpl.cxx" +#undef IMPL_RTL_EMPTYSTRING +#undef IMPL_RTL_IS_USTRING +#undef IMPL_RTL_STRCODE +#undef IMPL_RTL_STRINGDATA +#undef IMPL_RTL_STRINGNAME +#undef IMPL_RTL_STRNAME +#undef IMPL_RTL_USTRCODE +#undef RTL_LOG_STRING_BITS + sal_Int32 rtl_ustr_indexOfAscii_WithLength( sal_Unicode const * str, sal_Int32 len, char const * subStr, sal_Int32 subLen) SAL_THROW_EXTERN_C() -- cgit