From 3b27fa90814aecffe35e6b2214894c783c5d10a1 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 26 Sep 2017 14:38:52 +0200 Subject: Better way to detect Apple Xcode 9 Clang ...without also accidentally affecting any upstream Clang 9.0 Change-Id: Ie52413e2e53a2ce01f55b97677fe9878d498b076 Reviewed-on: https://gerrit.libreoffice.org/42809 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sw/qa/core/uwriter.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sw/qa') diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx index dd20d3fbceac..2363e6d5fa95 100644 --- a/sw/qa/core/uwriter.cxx +++ b/sw/qa/core/uwriter.cxx @@ -1412,8 +1412,10 @@ void SwDocTest::testTableAutoFormats() //Get m_aRotateAngle CPPUNIT_ASSERT( bool( pLoadAF->GetBoxFormat(0).m_aRotateAngle == aRAngle ) ); #if !((defined(__clang__) && __clang_major__ == 4 && __clang_minor__ == 0) \ - || (defined __APPLE__ && defined __clang__ && __clang_major__ == 9 \ - && __clang_minor__ == 0)) + || (defined __APPLE__ && defined __clang__ \ + && defined __apple_build_version__ \ + && __apple_build_version__ >= 9000000 \ + && __apple_build_version__ <= 9000099)) // Temporary fix for mysterious problem with Clang in F26 and Xcode 9 //Get m_aRotateMode SvxRotateModeItem aRMode = aBoxAF.m_aRotateMode; -- cgit