From 13f9dbe5825bfcaf7ce3fd8bc68604e5b58a9164 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 23 Jul 2011 04:06:29 -0700 Subject: Look for ieeefp.h and include it when appropriate --- CMakeLists.txt | 1 + OpenAL32/Include/alMain.h | 3 +++ config.h.in | 3 +++ 3 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 06da6950..7800b8a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 73b314fe..ad357536 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -8,6 +8,9 @@ #ifdef HAVE_FENV_H #include #endif +#ifdef HAVE_IEEEFP_H +#include +#endif #include "AL/al.h" #include "AL/alc.h" diff --git a/config.h.in b/config.h.in index 747abd39..c289e75d 100644 --- a/config.h.in +++ b/config.h.in @@ -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 -- cgit v1.2.3