From 6857be1a8eac025d0adbac6c38a4fe86b8b6c140 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 9 Jul 2012 14:54:51 +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. This is a backport of Qt 5 change b65291bc42c7e071e38efdd9ee6c4683f29aca13. Change-Id: I12d5a2c5c003092127773d9c25623d012976c906 Reviewed-by: Sean Harmer --- src/corelib/global/qglobal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 4e360fe..406be66 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -849,7 +849,8 @@ namespace QT_NAMESPACE {} # endif #endif -#if defined(Q_OS_QNX) || defined(Q_OS_BLACKBERRY) +#ifdef __cplusplus +# if defined(Q_OS_QNX) || defined(Q_OS_BLACKBERRY) # include # if defined(_YVALS) || defined(_LIBCPP_VER) // QNX: libcpp (Dinkumware-based) doesn't have the @@ -859,6 +860,7 @@ namespace QT_NAMESPACE {} # undef Q_COMPILER_INITIALIZER_LISTS # endif # endif +# endif #endif /* -- cgit v0.12