Ensure that qXXXdetection.h can be included directly
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 28 Mar 2012 19:28:46 +0000 (16:28 -0300)
committerQt by Nokia <qt-info@nokia.com>
Sat, 21 Apr 2012 09:19:39 +0000 (11:19 +0200)
Those files might have dependency on one another, on qconfig.h and on
early qglobal.h definitions, so ensure that the only correct include
order is that of qglobal.h.

Change-Id: I89098bacaf16353ee8b51604ee885508dc8e201a
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
config.tests/arch/arch.cpp
src/corelib/global/qcompilerdetection.h
src/corelib/global/qprocessordetection.h
src/corelib/global/qsystemdetection.h

index 1a96fb9..b1ec3d7 100644 (file)
@@ -40,6 +40,7 @@
 ****************************************************************************/
 
 // NOTE: This file is not meant to be compiled, only preprocessed.
+#define QGLOBAL_H
 #include "../../src/corelib/global/qprocessordetection.h"
 #undef alpha
 #undef arm
index 67baf42..e1563b0 100644 (file)
 **
 ****************************************************************************/
 
+#ifndef QGLOBAL_H
+# include <QtCore/qglobal.h>
+#endif
+
 #ifndef QCOMPILERDETECTION_H
 #define QCOMPILERDETECTION_H
 
index 04e0f19..109545c 100644 (file)
 **
 ****************************************************************************/
 
+#ifndef QGLOBAL_H
+# include <QtCore/qglobal.h>
+#endif
+
 #ifndef QPROCESSORDETECTION_H
 #define QPROCESSORDETECTION_H
 
index db5775d..94ff42a 100644 (file)
 **
 ****************************************************************************/
 
+#ifndef QGLOBAL_H
+# include <QtCore/qglobal.h>
+#endif
+
 #ifndef QSYSTEMDETECTION_H
 #define QSYSTEMDETECTION_H