diff --git a/src/corelib/global/qcompilerdetection.h b/src/corelib/global/qcompilerdetection.h index 5abf910254..6cc754c412 100644 --- a/src/corelib/global/qcompilerdetection.h +++ b/src/corelib/global/qcompilerdetection.h @@ -661,7 +661,8 @@ //# define Q_COMPILER_INITIALIZER_LISTS #endif -#if defined(Q_OS_BLACKBERRY) || defined(Q_OS_QNX) +#ifdef __cplusplus +# if defined(Q_OS_BLACKBERRY) || defined(Q_OS_QNX) # include # if defined(_YVALS) || defined(_LIBCPP_VER) // QNX: libcpp (Dinkumware-based) doesn't have the @@ -671,6 +672,7 @@ # undef Q_COMPILER_INITIALIZER_LISTS # endif # endif +# endif #endif // Q_OS_BLACKBERRY || Q_OS_QNX /*