Look for ieeefp.h and include it when appropriate

This commit is contained in:
Chris Robinson 2011-07-23 04:06:29 -07:00
parent 8dfa2560b1
commit 13f9dbe582
3 changed files with 7 additions and 0 deletions

View File

@ -196,6 +196,7 @@ CHECK_C_SOURCE_COMPILES("int foo(const char *str, ...) __attribute__((format(pri
CHECK_INCLUDE_FILE(fenv.h HAVE_FENV_H)
CHECK_INCLUDE_FILE(float.h HAVE_FLOAT_H)
CHECK_INCLUDE_FILE(ieeefp.h HAVE_IEEEFP_H)
CHECK_INCLUDE_FILE(guiddef.h HAVE_GUIDDEF_H)
IF(NOT HAVE_GUIDDEF_H)
CHECK_INCLUDE_FILE(initguid.h HAVE_INITGUID_H)

View File

@ -8,6 +8,9 @@
#ifdef HAVE_FENV_H
#include <fenv.h>
#endif
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif
#include "AL/al.h"
#include "AL/alc.h"

View File

@ -98,6 +98,9 @@
/* Define if we have guiddef.h */
#cmakedefine HAVE_INITGUID_H
/* Define if we have ieeefp.h */
#cmakedefine HAVE_IEEEFP_H
/* Define if we have float.h */
#cmakedefine HAVE_FLOAT_H