Ensure proper order of includes in qglobal.h
QAtomic will now depend on QTypeInfo, so shuffle the order to make sure the includes are right. The first set do not require anything but the macros from qglobal.h, then qflags.h requires qtypeinfo.h and qtypetraits.h, qatomic.h requires qtypeinfo.h and qglobalstatic.h requires qatomic.h. Of those, only qatomic.h isn't in global/, so we could even consider using "" includes, but I recall MSVC not honoring them correctly. Change-Id: I76c150254a99cdea8857445bdebf2e724eaa76bd Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
This commit is contained in:
parent
154b539465
commit
883444f16b
@ -1028,14 +1028,17 @@ template <typename T> struct QEnableIf<true, T> { typedef T Type; };
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
// Q_GLOBAL_STATIC
|
||||
#include <QtCore/qglobalstatic.h>
|
||||
|
||||
// qDebug and friends
|
||||
#include <QtCore/qlogging.h>
|
||||
#include <QtCore/qflags.h>
|
||||
#include <QtCore/qsysinfo.h>
|
||||
// We need to keep QTypeInfo, QSysInfo, QFlags, qDebug & family in qglobal.h for compatibility with Qt 4.
|
||||
// Be careful when changing the order of these files.
|
||||
#include <QtCore/qtypeinfo.h>
|
||||
#include <QtCore/qsysinfo.h>
|
||||
#include <QtCore/qlogging.h>
|
||||
|
||||
#include <QtCore/qflags.h>
|
||||
|
||||
#include <QtCore/qatomic.h>
|
||||
#include <QtCore/qglobalstatic.h>
|
||||
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user