diff options
author | David Robillard <d@drobilla.net> | 2021-10-27 17:17:19 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-10-27 17:17:19 -0400 |
commit | 0ff066e9e8f8d7787fd69241616188c1bfed2fb6 (patch) | |
tree | 225aca2775821e71ed4e42df81fbcf55faf84d41 /src | |
parent | 5bc34c44c47c68eecec90d971f8efb15788dd3b9 (diff) | |
download | zix-0ff066e9e8f8d7787fd69241616188c1bfed2fb6.tar.gz zix-0ff066e9e8f8d7787fd69241616188c1bfed2fb6.tar.bz2 zix-0ff066e9e8f8d7787fd69241616188c1bfed2fb6.zip |
Compile but fail at runtime if aligned allocation is not supported
Diffstat (limited to 'src')
-rw-r--r-- | src/allocator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/allocator.c b/src/allocator.c index bedef47..2df0b90 100644 --- a/src/allocator.c +++ b/src/allocator.c @@ -65,7 +65,7 @@ zix_default_aligned_alloc(ZixAllocator* const allocator, const int ret = posix_memalign(&ptr, alignment, size); return ret ? NULL : ptr; #else -# error No aligned memory allocation available + return NULL; #endif } |