diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-12-17 15:25:35 -0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-18 05:22:47 +0100 |
commit | 797f3c0a01e9adf0af3bc7c0bd3f7f63849d99b9 (patch) | |
tree | 510f7914cdee36a1776079be84bb3727982b45e5 /src/corelib/global/qsysinfo.h | |
parent | 019f9158e64ae24aaebb72d600ad9e90407d20ff (diff) |
Fix direct compilation of qtypeinfo.h and others
qtypeinfo.h is included by qglobal.h, so it needs to include that before
the #ifdef. Otherwise, we get a circular dependency problem with
qflags.h:
./QtCore/../../src/corelib/global/qflags.h:60:27: error: "Q_PRIMITIVE_TYPE" has not been declared
Also, take the opportunity to fix the other headers that are included
from qglobal.h to avoid similar problems in the future.
Change-Id: I99a56f42775c24bdcc796995b06509c1ca0cb849
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/global/qsysinfo.h')
-rw-r--r-- | src/corelib/global/qsysinfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/global/qsysinfo.h b/src/corelib/global/qsysinfo.h index 275b899662..867acd4d60 100644 --- a/src/corelib/global/qsysinfo.h +++ b/src/corelib/global/qsysinfo.h @@ -39,11 +39,11 @@ ** ****************************************************************************/ +#include <QtCore/qglobal.h> + #ifndef QSYSINFO_H #define QSYSINFO_H -#include <QtCore/qglobal.h> - QT_BEGIN_HEADER QT_BEGIN_NAMESPACE |