Skip to content

Commit

Permalink
tests: Include qglobal.h in EmulationDetector
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Kari Oikarinen committed Apr 30, 2018
1 parent 9ac9bea commit fe670fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/shared/emulationdetector.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fe670fc

Please sign in to comment.