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-04-25 11:44:50 -0700 |
commit | 644c7796c71dbbec84e75ad4c0d5945be368350d (patch) | |
tree | 296852445f110867ab6777fec0ee6303209316c0 /platform/qt/include/qmapbox.hpp | |
parent | ec847e2145f0fcdd6e1992e734afecf46a2376b8 (diff) | |
download | qtlocation-mapboxgl-644c7796c71dbbec84e75ad4c0d5945be368350d.tar.gz |
Fix MinGW build
Diffstat (limited to 'platform/qt/include/qmapbox.hpp')
-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 5a5198108c..471616daee 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 { |