diff options
author | Chris Robinson <[email protected]> | 2013-11-05 13:07:46 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-11-05 13:07:46 -0800 |
commit | 801b7cb059baf568050c40ac14eb65f8863837b3 (patch) | |
tree | ca4d3259840c030235a3b8288f6b8b50a70c3fb3 | |
parent | 10dbb1bc9b5d5040cb363c5a0dccb8ad273052b9 (diff) |
Include strings.h when available
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | OpenAL32/Include/alMain.h | 4 | ||||
-rw-r--r-- | config.h.in | 3 |
3 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 178270af..755e0944 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -288,6 +288,7 @@ CHECK_C_SOURCE_COMPILES("int foo(const char *str, ...) __attribute__((format(pri int main() {return 0;}" HAVE_GCC_FORMAT) CHECK_INCLUDE_FILE(malloc.h HAVE_MALLOC_H) +CHECK_INCLUDE_FILE(strings.h HAVE_STRINGS_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/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 095a4a2c..cc631935 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -7,6 +7,10 @@ #include <assert.h> #include <math.h> +#ifdef HAVE_STRINGS_H +#include <strings.h> +#endif + #ifdef HAVE_FENV_H #include <fenv.h> #endif diff --git a/config.h.in b/config.h.in index 0be494d3..e7a73fd8 100644 --- a/config.h.in +++ b/config.h.in @@ -113,6 +113,9 @@ /* Define if we have malloc.h */ #cmakedefine HAVE_MALLOC_H +/* Define if we have strings.h */ +#cmakedefine HAVE_STRINGS_H + /* Define if we have cpuid.h */ #cmakedefine HAVE_CPUID_H |