diff options
author | David Robillard <d@drobilla.net> | 2020-11-15 12:27:48 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-15 12:27:48 +0100 |
commit | 2ddd39e588042c02972b08f4ad428d502b33323d (patch) | |
tree | bdb7dc31c3191850ea8a4ad6709b02dfd0ffadc5 /src | |
parent | 5c1130819c60f52a3ab1a27711f4d8cca7a4cd14 (diff) | |
download | serd-2ddd39e588042c02972b08f4ad428d502b33323d.tar.gz serd-2ddd39e588042c02972b08f4ad428d502b33323d.tar.bz2 serd-2ddd39e588042c02972b08f4ad428d502b33323d.zip |
Only use aligned_alloc in C11
Diffstat (limited to 'src')
-rw-r--r-- | src/system.c | 2 |
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; |