summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-02-18 16:33:43 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-02-19 16:20:56 +0200
commit056073a904361ef9b18e0c38abd7f5c6a187ef22 (patch)
tree9be1518ea6564b4e5b78f9da8c11dd55625f17be /src
parent1fc7a9b82ea0c064c20247f0902b3854fff1942f (diff)
downloadqtlocation-mapboxgl-056073a904361ef9b18e0c38abd7f5c6a187ef22.tar.gz
[build] Use the correct define on Windows
https://blog.kowalczyk.info/article/j/guide-to-predefined-macros-in-c-compilers-gcc-clang-msvc-etc..html
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/util/chrono.cpp2
-rw-r--r--src/mbgl/util/compression.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/util/chrono.cpp b/src/mbgl/util/chrono.cpp
index c304548cf1..6674e73c42 100644
--- a/src/mbgl/util/chrono.cpp
+++ b/src/mbgl/util/chrono.cpp
@@ -5,7 +5,7 @@
#include <cstdio>
#include <ctime>
-#if defined(_WINDOWS)
+#if defined(_WIN32)
#define _gmtime(t, i) gmtime_s(i, t)
#else
#define _gmtime(t, i) gmtime_r(t, i)
diff --git a/src/mbgl/util/compression.cpp b/src/mbgl/util/compression.cpp
index ee3ebe7cae..1742898f9e 100644
--- a/src/mbgl/util/compression.cpp
+++ b/src/mbgl/util/compression.cpp
@@ -1,6 +1,6 @@
#include <mbgl/util/compression.hpp>
-#if defined(__QT__) && defined(_WINDOWS) && !defined(__GNUC__)
+#if defined(__QT__) && defined(_WIN32) && !defined(__GNUC__)
#include <QtZlib/zlib.h>
#else
#include <zlib.h>