summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2018-04-25 11:44:50 -0700
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2018-05-11 18:57:51 +0300
commit994e2dd952e289794fe55742b0c5540e44ba4b59 (patch)
treed8b1f0d4becde76c698c2479e2bb185740bdaa3e /platform
parent0eab78d63a573b5fa2e5046e44cbd0109df8cbc5 (diff)
downloadqtlocation-mapboxgl-994e2dd952e289794fe55742b0c5540e44ba4b59.tar.gz
Fix MinGW build again
Diffstat (limited to 'platform')
-rw-r--r--platform/qt/include/qmapbox.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/platform/qt/include/qmapbox.hpp b/platform/qt/include/qmapbox.hpp
index 369890343f..1ab04403cf 100644
--- a/platform/qt/include/qmapbox.hpp
+++ b/platform/qt/include/qmapbox.hpp
@@ -9,10 +9,14 @@
// This header follows the Qt coding style: https://wiki.qt.io/Qt_Coding_Style
-#if defined(QT_BUILD_MAPBOXGL_LIB)
- #define Q_MAPBOXGL_EXPORT Q_DECL_EXPORT
+#if !defined(QT_MAPBOXGL_STATIC)
+# if defined(QT_BUILD_MAPBOXGL_LIB)
+# define Q_MAPBOXGL_EXPORT Q_DECL_EXPORT
+# else
+# define Q_MAPBOXGL_EXPORT Q_DECL_IMPORT
+# endif
#else
- #define Q_MAPBOXGL_EXPORT Q_DECL_IMPORT
+# define Q_MAPBOXGL_EXPORT
#endif
namespace QMapbox {