aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltest/quicktestglobal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmltest/quicktestglobal.h')
-rw-r--r--src/qmltest/quicktestglobal.h27
1 files changed, 6 insertions, 21 deletions
diff --git a/src/qmltest/quicktestglobal.h b/src/qmltest/quicktestglobal.h
index 59bd643614..f7633a6d09 100644
--- a/src/qmltest/quicktestglobal.h
+++ b/src/qmltest/quicktestglobal.h
@@ -46,29 +46,14 @@
QT_BEGIN_HEADER
-#if defined(Q_OS_WIN)
-# if defined(QT_NODLL)
-# undef QT_MAKEDLL
-# undef QT_DLL
-# elif defined(QT_MAKEDLL) /* create a Qt DLL library */
-# if defined(QT_DLL)
-# undef QT_DLL
-# endif
-# if defined(QT_BUILD_QMLTEST_LIB)
-# define Q_QUICK_TEST_EXPORT Q_DECL_EXPORT
-# else
-# define Q_QUICK_TEST_EXPORT Q_DECL_IMPORT
-# endif
-# elif defined(QT_DLL) /* use a Qt DLL library */
+#ifndef QT_STATIC
+# if defined(QT_BUILD_QMLTEST_LIB)
+# define Q_QUICK_TEST_EXPORT Q_DECL_EXPORT
+# else
# define Q_QUICK_TEST_EXPORT Q_DECL_IMPORT
# endif
-#endif
-#if !defined(Q_QUICK_TEST_EXPORT)
-# if defined(QT_SHARED)
-# define Q_QUICK_TEST_EXPORT Q_DECL_EXPORT
-# else
-# define Q_QUICK_TEST_EXPORT
-# endif
+#else
+# define Q_QUICK_TEST_EXPORT
#endif
QT_END_HEADER