diff --git a/src/corelib/global/qcompilerdetection.h b/src/corelib/global/qcompilerdetection.h index 412ee96cfd6..6d8d4266885 100644 --- a/src/corelib/global/qcompilerdetection.h +++ b/src/corelib/global/qcompilerdetection.h @@ -460,12 +460,6 @@ # define QT_ASAN_ENABLED #endif -#ifdef __cplusplus -# if __has_include() /* remove this check once Integrity, QNX have caught up */ -# include -# endif -#endif - /* * C++11 support * diff --git a/src/corelib/global/qtconfiginclude.h b/src/corelib/global/qtconfiginclude.h index 8b22a47ac7c..8e86a2c825e 100644 --- a/src/corelib/global/qtconfiginclude.h +++ b/src/corelib/global/qtconfiginclude.h @@ -8,6 +8,12 @@ # pragma qt_sync_stop_processing #endif +#ifdef __cplusplus +# if __has_include() /* remove this check once Integrity, QNX have caught up */ +# include +# endif +#endif + #include #ifdef QT_BOOTSTRAPPED