summaryrefslogtreecommitdiffstats
path: root/src/util/math.h
diff options
context:
space:
mode:
authorRJ Ryan <rryan@mixxx.org>2015-12-30 16:10:43 -0500
committerRJ Ryan <rryan@mixxx.org>2015-12-30 16:10:43 -0500
commit645358c5ee2172b30731cdd85464b24c4bdb4980 (patch)
tree88a657ea09efae1d180bd217d0acc637c0ecb97b /src/util/math.h
parent9c002b1042f5c4396c2f7f86de5c4b19433b64cb (diff)
Fix include order issues for math.h on Windows.
Diffstat (limited to 'src/util/math.h')
-rw-r--r--src/util/math.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/math.h b/src/util/math.h
index 018335e4fc..4690f6d043 100644
--- a/src/util/math.h
+++ b/src/util/math.h
@@ -3,7 +3,12 @@
// Causes MSVC to define M_PI and friends.
// http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
+// Our SConscript defines this but check anyway.
+#ifdef __WINDOWS__
+#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
+#endif
+#endif
#include <cmath>
#include <algorithm>