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