aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-07-23 04:06:29 -0700
committerChris Robinson <[email protected]>2011-07-23 04:06:29 -0700
commit13f9dbe5825bfcaf7ce3fd8bc68604e5b58a9164 (patch)
treeb38ef62e39e0917e43d0ed90c4f2dbf0f066443d
parent8dfa2560b142a6dd6e9a386ca05cbadf7d6c6c40 (diff)
Look for ieeefp.h and include it when appropriate
-rw-r--r--CMakeLists.txt1
-rw-r--r--OpenAL32/Include/alMain.h3
-rw-r--r--config.h.in3
3 files changed, 7 insertions, 0 deletions
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 <fenv.h>
#endif
+#ifdef HAVE_IEEEFP_H
+#include <ieeefp.h>
+#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