aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-10-14 09:47:32 -0700
committerChris Robinson <[email protected]>2008-10-14 09:47:32 -0700
commitb91c2e4a995ecac496393786fe35584feb274e39 (patch)
treebee636bd082a15f8f77ea9f9c973970607ce5915
parent59a71b1454303df58c4c7e39b17d8538bb867663 (diff)
Include float.h if it exists, for _RC_CHOP and _MCW_RC
-rw-r--r--Alc/ALu.c4
-rw-r--r--CMakeLists.txt1
-rw-r--r--config.h.in3
3 files changed, 8 insertions, 0 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index e3bd069a..5371d3b5 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -34,6 +34,10 @@
#include "alu.h"
#include "bs2b.h"
+#if defined (HAVE_FLOAT_H)
+#include <float.h>
+#endif
+
#if defined(HAVE_STDINT_H)
#include <stdint.h>
typedef int64_t ALint64;
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1883ee81..71f2cbc6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -111,6 +111,7 @@ ELSE()
ENDIF()
CHECK_INCLUDE_FILE(fenv.h HAVE_FENV_H)
+CHECK_INCLUDE_FILE(float.h HAVE_FLOAT_H)
CHECK_LIBRARY_EXISTS(m sqrtf "" HAVE_SQRTF)
CHECK_LIBRARY_EXISTS(m acosf "" HAVE_ACOSF)
diff --git a/config.h.in b/config.h.in
index 733c348b..236b653a 100644
--- a/config.h.in
+++ b/config.h.in
@@ -52,6 +52,9 @@
/* Define if we have pthread_np.h */
#cmakedefine HAVE_PTHREAD_NP_H
+/* Define if we have float.h */
+#cmakedefine HAVE_FLOAT_H
+
/* Define if we have fenv.h */
#cmakedefine HAVE_FENV_H