aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-15 12:27:48 +0100
committerDavid Robillard <d@drobilla.net>2020-11-15 12:27:48 +0100
commit2ddd39e588042c02972b08f4ad428d502b33323d (patch)
treebdb7dc31c3191850ea8a4ad6709b02dfd0ffadc5
parent5c1130819c60f52a3ab1a27711f4d8cca7a4cd14 (diff)
downloadserd-2ddd39e588042c02972b08f4ad428d502b33323d.tar.gz
serd-2ddd39e588042c02972b08f4ad428d502b33323d.tar.bz2
serd-2ddd39e588042c02972b08f4ad428d502b33323d.zip
Only use aligned_alloc in C11
-rw-r--r--src/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/system.c b/src/system.c
index a371e548..c6796da9 100644
--- a/src/system.c
+++ b/src/system.c
@@ -54,7 +54,7 @@ serd_malloc_aligned(const size_t alignment, const size_t size)
{
#if defined(_WIN32)
return _aligned_malloc(size, alignment);
-#elif defined(HAVE_ALIGNED_ALLOC)
+#elif __STDC_VERSION__ >= 201112L && defined(HAVE_ALIGNED_ALLOC)
return aligned_alloc(alignment, size);
#elif defined(HAVE_POSIX_MEMALIGN)
void* ptr = NULL;