Add Windows support to MBTiles file source (#905)

This commit is contained in:
tdcosta100
2023-06-26 06:57:26 -03:00
committed by GitHub
parent 5964b65e2a
commit 4360257d8c
10 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
#include <mbgl/util/filesystem.hpp>
#if defined(USE_STD_FILESYSTEM)
#include <filesystem>
bool mbgl::util::is_absolute_path(std::string path) {
return std::filesystem::path(path).is_absolute();
}
#else
bool mbgl::util::is_absolute_path(std::string path) {
return path.at(0) == '/';
}
#endif