From b91c2e4a995ecac496393786fe35584feb274e39 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 14 Oct 2008 09:47:32 -0700 Subject: Include float.h if it exists, for _RC_CHOP and _MCW_RC --- Alc/ALu.c | 4 ++++ CMakeLists.txt | 1 + config.h.in | 3 +++ 3 files changed, 8 insertions(+) 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 +#endif + #if defined(HAVE_STDINT_H) #include 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 -- cgit v1.2.3