summaryrefslogtreecommitdiffstats
path: root/src/util/math.h
diff options
context:
space:
mode:
authorUwe Klotz <uwe_klotz@web.de>2017-01-21 09:16:34 +0100
committerUwe Klotz <uwe_klotz@web.de>2017-01-21 20:31:42 +0100
commit125b29ba1902b30efd6f5d7a03329232f61cd0b7 (patch)
tree30c2a5a621e436f937593fa669deec140b29e6cc /src/util/math.h
parentbf786627d527cd9c95bc9a36e9800fbeb519b937 (diff)
Delete workarounds for Visual Studio < 2015
Diffstat (limited to 'src/util/math.h')
-rw-r--r--src/util/math.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/util/math.h b/src/util/math.h
index 1e95cbe03d..d4f2edcf80 100644
--- a/src/util/math.h
+++ b/src/util/math.h
@@ -65,13 +65,6 @@ inline int roundUpToPowerOf2(int v) {
return power;
}
-// MSVS 2013 (_MSC_VER 1800) introduced C99 support.
-#if defined(__WINDOWS__) && _MSC_VER < 1800
-inline int round(double x) {
- return x < 0.0 ? ceil(x - 0.5) : floor(x + 0.5);
-}
-#endif
-
template <typename T>
inline const T ratio2db(const T a) {
return log10(a) * 20;