summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2017-07-31 15:53:23 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-08-07 17:20:33 +0300
commit2108763010cd4f5634129875c58940d279bde319 (patch)
treea453270b888e1cd48e925fa5a6705129d69918d1 /include
parentcaea48658753db49174ecdfbf0af7510208b846e (diff)
downloadqtlocation-mapboxgl-2108763010cd4f5634129875c58940d279bde319.tar.gz
[core] Remove std:: namespace for some functions
They are not available on Android + GCC (needed by Qt)
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/math/log2.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mbgl/math/log2.hpp b/include/mbgl/math/log2.hpp
index 8a3bc7f1c0..53d5e45545 100644
--- a/include/mbgl/math/log2.hpp
+++ b/include/mbgl/math/log2.hpp
@@ -17,9 +17,9 @@ typename std::enable_if_t<std::is_floating_point<T>::value, T> log2(T x)
// log2() is producing wrong results on ARMv5 binaries
// running on ARMv7+ CPUs.
#if defined(__ANDROID__)
- return std::log(x) / M_LN2;
+ return ::log(x) / M_LN2;
#else
- return std::log2(x);
+ return ::log2(x);
#endif
}