mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
stdlib.h: use existing malloc/alloc_size attribute defines
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2013-02-18 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
|
||||||
|
and __attribute_alloc_size__.
|
||||||
|
|
||||||
2013-02-18 Mike Frysinger <vapier@gentoo.org>
|
2013-02-18 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* include/programs/xmalloc.h: Change __attribute_alloc_size to
|
* include/programs/xmalloc.h: Change __attribute_alloc_size to
|
||||||
|
@ -507,7 +507,7 @@ extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
|
|||||||
#ifdef __USE_ISOC11
|
#ifdef __USE_ISOC11
|
||||||
/* ISO C variant of aligned allocation. */
|
/* ISO C variant of aligned allocation. */
|
||||||
extern void *aligned_alloc (size_t __alignment, size_t __size)
|
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
|
#endif
|
||||||
|
|
||||||
__BEGIN_NAMESPACE_STD
|
__BEGIN_NAMESPACE_STD
|
||||||
|
Reference in New Issue
Block a user