summaryrefslogtreecommitdiff
path: root/platform/qt
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2018-05-14 16:44:43 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2018-05-14 17:18:51 +0300
commit07ad29d30da44ded2bf40418b3625fecfb817399 (patch)
tree7307a4bf1cea17a60e6407269f1e49d6bdc4c2be /platform/qt
parent28da56465e59702b4ae0219f1c7494a9271f6227 (diff)
downloadqtlocation-mapboxgl-07ad29d30da44ded2bf40418b3625fecfb817399.tar.gz
[qt] Fix build when building the Qt Location plugin
- MinGW has to explicitly know that is building a static library. - Android doesn't have 'round' on the std:: namespace when using g++.
Diffstat (limited to 'platform/qt')
-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 {