diff options
-rw-r--r-- | Alc/helpers.c | 2 | ||||
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | config.h.in | 3 |
3 files changed, 5 insertions, 1 deletions
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 <time.h> #include <errno.h> #include <stdarg.h> -#ifdef HAVE__ALIGNED_MALLOC +#ifdef HAVE_MALLOC_H #include <malloc.h> #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 |