summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2017-04-07 16:48:08 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-04-07 17:12:28 +0300
commit6c3c4211197d79fd7671c2ada09b1f4498e9d37c (patch)
tree7fd2d3a6cf33986cf4a933e6aecf128565e3df7c
parente05a6bb3d596001fca81eb6a8c9e2db38ba5ca7e (diff)
downloadqtlocation-mapboxgl-6c3c4211197d79fd7671c2ada09b1f4498e9d37c.tar.gz
[Qt] Fix build when zlib is compiled with -DZ_PREFIX
Proper fix this time.
-rw-r--r--src/mbgl/util/compression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/util/compression.cpp b/src/mbgl/util/compression.cpp
index 832c38b8d5..94089c1b26 100644
--- a/src/mbgl/util/compression.cpp
+++ b/src/mbgl/util/compression.cpp
@@ -25,7 +25,7 @@ namespace util {
// Needed when using a zlib compiled with -DZ_PREFIX
// because it will mess with this function name and
// cause a link error.
-#undef z_compress
+#undef compress
std::string compress(const std::string &raw) {
z_stream deflate_stream;