summaryrefslogtreecommitdiffstats
path: root/src/input/qt3dinput_global.h
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2015-01-27 10:18:30 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2015-01-27 19:58:29 +0000
commit474ad03e4977116c12e7cd87c26295c8590b1f60 (patch)
tree1c6c11bfc7d1329e2bc3f527ab441e2ad3502c6d /src/input/qt3dinput_global.h
parenteaf3ca9683d2a6556e790b95b9598da5786c7f71 (diff)
Fix static builds
Change-Id: I3731706ea9aba29a422699f1a38bc48e3c1fdcf3 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/input/qt3dinput_global.h')
-rw-r--r--src/input/qt3dinput_global.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/input/qt3dinput_global.h b/src/input/qt3dinput_global.h
index b9ae5fd70..f3fb5578b 100644
--- a/src/input/qt3dinput_global.h
+++ b/src/input/qt3dinput_global.h
@@ -46,10 +46,14 @@
QT_BEGIN_NAMESPACE
-#if defined(QT3DINPUT_LIBRARY)
-# define QT3DINPUTSHARED_EXPORT Q_DECL_EXPORT
+#if defined(QT_SHARED) || !defined(QT_STATIC)
+# if defined(QT3DINPUT_LIBRARY)
+# define QT3DINPUTSHARED_EXPORT Q_DECL_EXPORT
+# else
+# define QT3DINPUTSHARED_EXPORT Q_DECL_IMPORT
+# endif
#else
-# define QT3DINPUTSHARED_EXPORT Q_DECL_IMPORT
+# define QT3DINPUTSHARED_EXPORT
#endif
QT_END_NAMESPACE