summaryrefslogtreecommitdiffhomepage
path: root/qxt-mini/qxtglobal.h
diff options
context:
space:
mode:
Diffstat (limited to 'qxt-mini/qxtglobal.h')
-rw-r--r--qxt-mini/qxtglobal.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/qxt-mini/qxtglobal.h b/qxt-mini/qxtglobal.h
index 6446b0ee..5ac72fb7 100644
--- a/qxt-mini/qxtglobal.h
+++ b/qxt-mini/qxtglobal.h
@@ -53,10 +53,18 @@
#ifdef BUILD_qxt_mini
# define QXT_BUILD
-# define BUILD_QXT_GUI
-# define BUILD_QXT
#endif
+#if !defined(QXT_STATIC) && !defined(QXT_DOXYGEN_RUN)
+# if defined(BUILD_QXT_GUI)
+# define QXT_EXPORT Q_DECL_EXPORT
+# else
+# define QXT_EXPORT Q_DECL_IMPORT
+# endif
+#else
+# define QXT_EXPORT
+#endif // BUILD_QXT_GUI
+
#ifdef QXT_BUILD
# if defined(BUILD_QXT_CORE)
# define QXT_CORE_EXPORT Q_DECL_EXPORT