summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2015-05-26 20:02:39 +0200
committerChristian Mollekopf <mollekopf@kolabsys.com>2015-05-26 20:02:39 +0200
commit62ebad910fa7d1843373056dd795fc5c36b20bb2 (patch)
tree20632a004f9ee9e668a6b1d3ceccf8d3809ee9dd
parentd13aaf8a3711fd16451ab7756473941e6bd6bf24 (diff)
downloadlibkolab-62ebad910fa7d1843373056dd795fc5c36b20bb2.tar.gz
Workaround for qt not defining Q_DECL_IMPORT
-rw-r--r--kolab_export.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kolab_export.h b/kolab_export.h
index ec7a0b2..d001b64 100644
--- a/kolab_export.h
+++ b/kolab_export.h
@@ -23,6 +23,11 @@
#include <qglobal.h>
+//Workaround for qt not defining Q_DECL_IMPORT as it should
+#if defined(Q_OS_LINUX)
+# define Q_DECL_IMPORT __attribute__((visibility("default")))
+#endif
+
#ifndef KOLAB_EXPORT
# if defined(KOLAB_STATIC_LIBS)
/* No export/import for static libraries */