summaryrefslogtreecommitdiffstats
path: root/tests/shared
diff options
context:
space:
mode:
authorKari Oikarinen <kari.oikarinen@qt.io>2018-04-17 10:05:55 +0300
committerKari Oikarinen <kari.oikarinen@qt.io>2018-04-30 06:18:06 +0000
commitfe670fc0f0121539379193374b4e6a732e393b85 (patch)
treea3481b799e0c9a9ae7d7218717ab498c8b7c5fb0 /tests/shared
parent9ac9bea16c502b26fb99448b118960f43272b335 (diff)
tests: Include qglobal.h in EmulationDetector
Checking for Q_OS_LINUX, Q_PROCESSOR_ARM and use of QT_CONFIG() checks should only happen after qglobal.h is included. Otherwise the header will be broken if included before something that uses qglobal.h Change-Id: I052e46784f7b174e74e8894e1b7c5b7528420f5d Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/shared')
-rw-r--r--tests/shared/emulationdetector.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/shared/emulationdetector.h b/tests/shared/emulationdetector.h
index cca11be695..2b04a1061e 100644
--- a/tests/shared/emulationdetector.h
+++ b/tests/shared/emulationdetector.h
@@ -29,6 +29,8 @@
#ifndef EMULATIONDETECTOR_H
#define EMULATIONDETECTOR_H
+#include <QtCore/qglobal.h>
+
#if defined(Q_OS_LINUX) && defined(Q_PROCESSOR_ARM)
#define SHOULD_CHECK_ARM_ON_X86