From 1e8f85dbc90da6b49fa7018ccbc35db68281d395 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Thu, 18 May 2017 16:59:02 +0200 Subject: don't try to pull in the regular config headers when bootstrapping Task-number: QTBUG-60675 Change-Id: I7ae9ab4f442d34f6eaa770652029b5dfccef346a Reviewed-by: Simon Hausmann --- src/qml/qtqmlglobal.h | 16 +++++++++------- src/qml/qtqmlglobal_p.h | 4 +++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/qml/qtqmlglobal.h b/src/qml/qtqmlglobal.h index 6704e55b52..387c28a945 100644 --- a/src/qml/qtqmlglobal.h +++ b/src/qml/qtqmlglobal.h @@ -40,18 +40,20 @@ #ifndef QTQMLGLOBAL_H #define QTQMLGLOBAL_H +#if defined(QT_BUILD_QMLDEVTOOLS_LIB) || defined(QT_QMLDEVTOOLS_LIB) +# define QT_QML_BOOTSTRAPPED +#endif + #include -#include -#if QT_CONFIG(qml_network) -#include +#ifndef QT_QML_BOOTSTRAPPED +# include +# if QT_CONFIG(qml_network) +# include +# endif #endif QT_BEGIN_NAMESPACE -#if defined(QT_BUILD_QMLDEVTOOLS_LIB) || defined(QT_QMLDEVTOOLS_LIB) -# define QT_QML_BOOTSTRAPPED -#endif - #if !defined(QT_QML_BOOTSTRAPPED) && !defined(QT_STATIC) # if defined(QT_BUILD_QML_LIB) # define Q_QML_EXPORT Q_DECL_EXPORT diff --git a/src/qml/qtqmlglobal_p.h b/src/qml/qtqmlglobal_p.h index e9834ffc4c..0313d8e33b 100644 --- a/src/qml/qtqmlglobal_p.h +++ b/src/qml/qtqmlglobal_p.h @@ -52,8 +52,10 @@ // #include -#include #include +#ifndef QT_QML_BOOTSTRAPPED +# include +#endif #define Q_QML_PRIVATE_EXPORT Q_QML_EXPORT -- cgit v1.2.3