summaryrefslogtreecommitdiff
path: root/include/mbgl/util/util.hpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-07-21 12:45:47 +0300
committerKonstantin Käfer <mail@kkaefer.com>2016-08-05 11:42:22 +0200
commit3ae506ee1301bcc3f9961a9282f710b8b7fa8039 (patch)
tree225b86322734f372a8d24c1c24ffa187aff4febd /include/mbgl/util/util.hpp
parent57bed88b03e87344712800f8fbe796f81a00fc16 (diff)
downloadqtlocation-mapboxgl-3ae506ee1301bcc3f9961a9282f710b8b7fa8039.tar.gz
[core] Use NDEBUG instead of DEBUG
CMake defines 'NDEBUG' by default for release build, so we can check if that's not defined instead of using 'DEBUG' for debug build.
Diffstat (limited to 'include/mbgl/util/util.hpp')
-rw-r--r--include/mbgl/util/util.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/util/util.hpp b/include/mbgl/util/util.hpp
index df8613ab70..c5a7cb3780 100644
--- a/include/mbgl/util/util.hpp
+++ b/include/mbgl/util/util.hpp
@@ -1,6 +1,6 @@
#pragma once
-#ifdef DEBUG
+#ifndef NDEBUG
#include <thread>
#define MBGL_STORE_THREAD(tid) const std::thread::id tid = std::this_thread::get_id();