diff options
Diffstat (limited to 'src/corelib/global/qcompilerdetection.h')
-rw-r--r-- | src/corelib/global/qcompilerdetection.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 <utility> # if defined(_YVALS) || defined(_LIBCPP_VER) // QNX: libcpp (Dinkumware-based) doesn't have the <initializer_list> @@ -671,6 +672,7 @@ # undef Q_COMPILER_INITIALIZER_LISTS # endif # endif +# endif #endif // Q_OS_BLACKBERRY || Q_OS_QNX /* |