aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-11-06 02:38:34 -0800
committerChris Robinson <[email protected]>2015-11-06 02:38:34 -0800
commit858230f4528ad2f418f97414e3a8be46865c367c (patch)
tree5808578e223d487b8d478b8eb78741c34c3378b4
parentd6f4e5139f1305d7cf0ff829f158f1576cb76ddd (diff)
Include float.h if present before defining math stuff
-rw-r--r--include/math_defs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/math_defs.h b/include/math_defs.h
index d3c8b1b4..149cf80b 100644
--- a/include/math_defs.h
+++ b/include/math_defs.h
@@ -1,6 +1,10 @@
#ifndef AL_MATH_DEFS_H
#define AL_MATH_DEFS_H
+#ifdef HAVE_FLOAT_H
+#include <float.h>
+#endif
+
#define F_PI (3.14159265358979323846f)
#define F_PI_2 (1.57079632679489661923f)
#define F_TAU (6.28318530717958647692f)