summaryrefslogtreecommitdiffstats
path: root/src/util/math.h
diff options
context:
space:
mode:
authorRJ Ryan <rryan@mixxx.org>2014-09-16 20:27:50 -0400
committerRJ Ryan <rryan@mixxx.org>2014-09-16 20:27:50 -0400
commit059596c3203f56f44f4ca385638f9d3e6d1203be (patch)
treee35bc132b2e9cc8f19abc2401214c7deff4f403c /src/util/math.h
parenta36661f0db366746ece7e5a816d4a90d6130d67e (diff)
Only define round on __WINDOWS__.
Accidentally broke this in 214430.
Diffstat (limited to 'src/util/math.h')
-rw-r--r--src/util/math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/math.h b/src/util/math.h
index 8a3db3b271..aeec6ed72b 100644
--- a/src/util/math.h
+++ b/src/util/math.h
@@ -71,7 +71,7 @@ inline int roundUpToPowerOf2(int v) {
}
// MSVS 2013 (_MSC_VER 1800) introduced C99 support.
-#if _MSC_VER < 1800
+#if defined(__WINDOWS__) && _MSC_VER < 1800
inline int round(double x){
return x < 0.0 ? ceil(x - 0.5) : floor(x + 0.5);
}