Include float.h if it exists, for _RC_CHOP and _MCW_RC

This commit is contained in:
Chris Robinson 2008-10-14 09:47:32 -07:00
parent 59a71b1454
commit b91c2e4a99
3 changed files with 8 additions and 0 deletions

View File

@ -34,6 +34,10 @@
#include "alu.h" #include "alu.h"
#include "bs2b.h" #include "bs2b.h"
#if defined (HAVE_FLOAT_H)
#include <float.h>
#endif
#if defined(HAVE_STDINT_H) #if defined(HAVE_STDINT_H)
#include <stdint.h> #include <stdint.h>
typedef int64_t ALint64; typedef int64_t ALint64;

View File

@ -111,6 +111,7 @@ ELSE()
ENDIF() ENDIF()
CHECK_INCLUDE_FILE(fenv.h HAVE_FENV_H) 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 sqrtf "" HAVE_SQRTF)
CHECK_LIBRARY_EXISTS(m acosf "" HAVE_ACOSF) CHECK_LIBRARY_EXISTS(m acosf "" HAVE_ACOSF)

View File

@ -52,6 +52,9 @@
/* Define if we have pthread_np.h */ /* Define if we have pthread_np.h */
#cmakedefine 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 */ /* Define if we have fenv.h */
#cmakedefine HAVE_FENV_H #cmakedefine HAVE_FENV_H