From 4be9b544ea79d601b82bf9eb82549cc627584630 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 29 Dec 2012 16:49:53 -0500 Subject: stdlib.h: use existing malloc/alloc_size attribute defines Signed-off-by: Mike Frysinger --- ChangeLog | 5 +++++ stdlib/stdlib.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 12559ab..1608547 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2013-02-18 Mike Frysinger + * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__ + and __attribute_alloc_size__. + +2013-02-18 Mike Frysinger + * include/programs/xmalloc.h: Change __attribute_alloc_size to __attribute_alloc_size__. * include/sys/cdefs.h (__attribute_alloc_size): Macro removed. diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index fa1175c..f7a818a 100644 --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h @@ -507,7 +507,7 @@ extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) #ifdef __USE_ISOC11 /* ISO C variant of aligned allocation. */ extern void *aligned_alloc (size_t __alignment, size_t __size) - __THROW __wur __attribute__ ((__malloc__, __alloc_size__ (2))); + __THROW __attribute_malloc__ __attribute_alloc_size__ ((2)) __wur; #endif __BEGIN_NAMESPACE_STD -- cgit v1.1