diff options
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/macfunctions/macfunctions.pro | 2 | ||||
-rw-r--r-- | tests/auto/macfunctions/tst_qmacfunctions.mm | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/macfunctions/macfunctions.pro b/tests/auto/macfunctions/macfunctions.pro index b13227a..9a605d9 100644 --- a/tests/auto/macfunctions/macfunctions.pro +++ b/tests/auto/macfunctions/macfunctions.pro @@ -3,4 +3,4 @@ CONFIG -= app_bundle TARGET = tst_qmacfunctions QT += macextras widgets testlib OBJECTIVE_SOURCES += tst_qmacfunctions.mm -LIBS += -framework AppKit +macos: LIBS += -framework AppKit 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 |