diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2018-04-25 11:44:50 -0700 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2018-05-11 18:57:51 +0300 |
commit | 994e2dd952e289794fe55742b0c5540e44ba4b59 (patch) | |
tree | d8b1f0d4becde76c698c2479e2bb185740bdaa3e /platform | |
parent | 0eab78d63a573b5fa2e5046e44cbd0109df8cbc5 (diff) | |
download | qtlocation-mapboxgl-994e2dd952e289794fe55742b0c5540e44ba4b59.tar.gz |
Fix MinGW build again
Diffstat (limited to 'platform')
-rw-r--r-- | platform/qt/include/qmapbox.hpp | 10 |
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 { |