From b65291bc42c7e071e38efdd9ee6c4683f29aca13 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 9 Jul 2012 15:05:33 +0200 Subject: QNX: QtGlobal: compile as a C header again is a C++ header, only execute the check for the Dinkumware standard library if we're compiling under a C++ compiler. Change-Id: I1b24e76f20bfc03b70a330f9da96b4f815106e61 Reviewed-by: Thomas McGuire Reviewed-by: Sean Harmer Reviewed-by: Thiago Macieira --- src/corelib/global/qcompilerdetection.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 /* -- cgit v1.2.3