aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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