From 0ca7ab2cf81d270ccc9fbaeecbd3c21361e5f82c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 25 Nov 2012 19:20:35 -0800 Subject: Explicitly check for malloc.h --- Alc/helpers.c | 2 +- CMakeLists.txt | 1 + config.h.in | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Alc/helpers.c b/Alc/helpers.c index 494439ba..6358f044 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -24,7 +24,7 @@ #include #include #include -#ifdef HAVE__ALIGNED_MALLOC +#ifdef HAVE_MALLOC_H #include #endif diff --git a/CMakeLists.txt b/CMakeLists.txt index 678b0f33..dfdb8bef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -246,6 +246,7 @@ ENDIF() CHECK_C_SOURCE_COMPILES("int foo(const char *str, ...) __attribute__((format(printf, 1, 2))); int main() {return 0;}" HAVE_GCC_FORMAT) +CHECK_INCLUDE_FILE(malloc.h HAVE_MALLOC_H) CHECK_INCLUDE_FILE(cpuid.h HAVE_CPUID_H) CHECK_INCLUDE_FILE(fenv.h HAVE_FENV_H) CHECK_INCLUDE_FILE(float.h HAVE_FLOAT_H) diff --git a/config.h.in b/config.h.in index 21fd7c4c..06c34c81 100644 --- a/config.h.in +++ b/config.h.in @@ -107,6 +107,9 @@ /* Define if we have arm_neon.h */ #cmakedefine HAVE_ARM_NEON_H +/* Define if we have malloc.h */ +#cmakedefine HAVE_MALLOC_H + /* Define if we have cpuid.h */ #cmakedefine HAVE_CPUID_H -- cgit v1.2.3