aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-05-19 08:13:13 -0700
committerChris Robinson <[email protected]>2020-05-19 08:13:13 -0700
commit463591663c2421b3436edc446d173380d6a6e106 (patch)
treef8e738f589a63fc7392eb2ea5e1570672bb24bac /config.h.in
parent400a108eade05d616ed0560024b7fd6f5be5fd1d (diff)
Check that aligned_alloc is available with cmake
Some compilers support C++17 even on targets that lack required functions. Projects that want to force C++17 will then run into a problem with std::aligned_alloc not existing on those targets, so it needs to be explicitly checked for. The alternative is to simply never use it even when it would be available.
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index 29a10b20..75aacc0d 100644
--- a/config.h.in
+++ b/config.h.in
@@ -8,6 +8,9 @@
/* Define if HRTF data is embedded in the library */
#cmakedefine ALSOFT_EMBED_HRTF_DATA
+/* Define if we have the std::aligned_alloc function */
+#cmakedefine HAVE_STD_ALIGNED_ALLOC
+
/* Define if we have the posix_memalign function */
#cmakedefine HAVE_POSIX_MEMALIGN