diff options
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; |