aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/macfunctions/tst_qmacfunctions.mm
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-02-09 07:48:04 -0800
committerJake Petroules <jake.petroules@qt.io>2017-02-09 18:30:34 +0000
commita931d0799b46123422582635b79d217eee0ae6bd (patch)
tree1d41422d0b3dde57d0f598b5219e5d8e6d3d4d70 /tests/auto/macfunctions/tst_qmacfunctions.mm
parent231ca3adc48d1980b9cd14840df832a72d642e79 (diff)
Fix platform conditions across entire modulev5.9.0-alpha1
Change-Id: Id63420244eecd5935b7fa7c82b6ad9e0e48ad0f1 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Diffstat (limited to 'tests/auto/macfunctions/tst_qmacfunctions.mm')
-rw-r--r--tests/auto/macfunctions/tst_qmacfunctions.mm5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/macfunctions/tst_qmacfunctions.mm b/tests/auto/macfunctions/tst_qmacfunctions.mm
index e8e04a7..cd1d304 100644
--- a/tests/auto/macfunctions/tst_qmacfunctions.mm
+++ b/tests/auto/macfunctions/tst_qmacfunctions.mm
@@ -25,7 +25,6 @@
** $QT_END_LICENSE$
**
****************************************************************************/
-#import <AppKit/AppKit.h>
#include <QString>
#include <QtTest>
@@ -35,6 +34,10 @@
#include <QtWidgets/QMainWindow>
#include <qmacfunctions.h>
+#ifdef Q_OS_MACOS
+#import <AppKit/AppKit.h>
+#endif
+
class tst_QMacFunctions : public QObject
{
Q_OBJECT