From bfd8be99bef12b256fe54b97aa5fdfaf3e4d901d Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Tue, 1 Sep 2020 11:09:55 +0200 Subject: [PATCH] UnitTests: Fix unit test build Guard clang include. Change-Id: Ia72b40fa787918f47508049b045a21edf976d93a Reviewed-by: Christian Kandeler --- tests/unit/unittest/conditionally-disabled-tests.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/unittest/conditionally-disabled-tests.h b/tests/unit/unittest/conditionally-disabled-tests.h index 91b2541fe9d..79b24e3d207 100644 --- a/tests/unit/unittest/conditionally-disabled-tests.h +++ b/tests/unit/unittest/conditionally-disabled-tests.h @@ -25,6 +25,7 @@ #include +#ifdef CLANG_UNIT_TESTS #include #if CINDEX_VERSION_MAJOR == 0 && CINDEX_VERSION_MINOR == 59 @@ -32,6 +33,7 @@ #else # define DISABLED_FOR_CLANG_10(x) x #endif +#endif #ifdef Q_OS_WIN # define DISABLED_ON_WINDOWS(x) DISABLED_##x