summaryrefslogtreecommitdiff
path: root/next/platform
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.deoliveira@mapbox.com>2019-11-04 08:12:23 +0200
committerAnder Conselvan de Oliveira <ander.deoliveira@mapbox.com>2019-11-05 04:43:31 +0200
commit2dbb7f5064c56a3c15741c8fd023d07c2c0ad209 (patch)
tree0ad50e13c055be777a7978f9d41e3928d0fa91d8 /next/platform
parentd8b1b2bacf0dd9812d62077a825067441037791b (diff)
downloadqtlocation-mapboxgl-2dbb7f5064c56a3c15741c8fd023d07c2c0ad209.tar.gz
Fix MapSnapshotter build failure on Windowsupstream/anderco-win-snapshot
MSVC implementation of std::promise is buggy and only works with types that can be default-constructed. Wrap LatLngBounds in such a struct to avoid a compilation failure in the instantiation of ask() inside MapSnapshotter::getRegion() since that would create a std::promise<LanLngBounds>.
Diffstat (limited to 'next/platform')
-rw-r--r--next/platform/linux/linux.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/next/platform/linux/linux.cmake b/next/platform/linux/linux.cmake
index 396b9a0ffd..912fbd596c 100644
--- a/next/platform/linux/linux.cmake
+++ b/next/platform/linux/linux.cmake
@@ -17,6 +17,7 @@ target_sources(
${MBGL_ROOT}/platform/default/src/mbgl/gl/headless_backend.cpp
${MBGL_ROOT}/platform/default/src/mbgl/i18n/collator.cpp
${MBGL_ROOT}/platform/default/src/mbgl/i18n/number_format.cpp
+ ${MBGL_ROOT}/platform/default/src/mbgl/map/map_snapshotter.cpp
${MBGL_ROOT}/platform/default/src/mbgl/layermanager/layer_manager.cpp
${MBGL_ROOT}/platform/default/src/mbgl/storage/asset_file_source.cpp
${MBGL_ROOT}/platform/default/src/mbgl/storage/default_file_source.cpp