From 380d7e87dc80978581e73063dff0e264283c0306 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 23 Dec 2011 23:49:48 -0500 Subject: Implement aligned_alloc --- stdlib/stdlib.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'stdlib') diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index 754743f767..55886662bc 100644 --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h @@ -509,6 +509,11 @@ extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) __THROW __nonnull ((1)) __wur; #endif +#ifdef __USE_ISOC11 +/* ISO C variant of aligned allocation. */ +extern int aligned_alloc (size_t __alignment, size_t __size) __THROW __wur; +#endif + __BEGIN_NAMESPACE_STD /* Abort execution and generate a core-dump. */ extern void abort (void) __THROW __attribute__ ((__noreturn__)); -- cgit v1.2.3