From cc6e7378d3f5473137e0c46d39173e6f60dcefda Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 30 Jan 2024 14:57:46 -0500 Subject: update standards and safety checks --- src/stdlib/aligned_alloc.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/stdlib/aligned_alloc.c') diff --git a/src/stdlib/aligned_alloc.c b/src/stdlib/aligned_alloc.c index 36bae69d..983cb7de 100644 --- a/src/stdlib/aligned_alloc.c +++ b/src/stdlib/aligned_alloc.c @@ -1,9 +1,9 @@ -#if 0 - -#include +#include +#include "_stdlib.h" void *aligned_alloc(size_t alignment, size_t size) { + SIGNAL_SAFE(0); /* all allocations are page aligned */ (void)alignment; return malloc(size); @@ -12,6 +12,3 @@ void *aligned_alloc(size_t alignment, size_t size) /* STDC(201112) */ - - -#endif -- cgit v1.2.1