diff --git a/config.tests/arch/arch.cpp b/config.tests/arch/arch.cpp index 1a96fb982f1..b1ec3d7111f 100644 --- a/config.tests/arch/arch.cpp +++ b/config.tests/arch/arch.cpp @@ -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 diff --git a/src/corelib/global/qcompilerdetection.h b/src/corelib/global/qcompilerdetection.h index 67baf42f8bb..e1563b06450 100644 --- a/src/corelib/global/qcompilerdetection.h +++ b/src/corelib/global/qcompilerdetection.h @@ -40,6 +40,10 @@ ** ****************************************************************************/ +#ifndef QGLOBAL_H +# include +#endif + #ifndef QCOMPILERDETECTION_H #define QCOMPILERDETECTION_H diff --git a/src/corelib/global/qprocessordetection.h b/src/corelib/global/qprocessordetection.h index 04e0f19f06a..109545c10ec 100644 --- a/src/corelib/global/qprocessordetection.h +++ b/src/corelib/global/qprocessordetection.h @@ -39,6 +39,10 @@ ** ****************************************************************************/ +#ifndef QGLOBAL_H +# include +#endif + #ifndef QPROCESSORDETECTION_H #define QPROCESSORDETECTION_H diff --git a/src/corelib/global/qsystemdetection.h b/src/corelib/global/qsystemdetection.h index db5775d0214..94ff42a789f 100644 --- a/src/corelib/global/qsystemdetection.h +++ b/src/corelib/global/qsystemdetection.h @@ -39,6 +39,10 @@ ** ****************************************************************************/ +#ifndef QGLOBAL_H +# include +#endif + #ifndef QSYSTEMDETECTION_H #define QSYSTEMDETECTION_H