diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-26 10:36:06 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-30 10:47:57 +0200 |
commit | a31a7bad6a26bd64ef017e95d6ee0e994b6ca87b (patch) | |
tree | 03ce4d6e438b070f6243effeff88634bd1d6b1df /newlib/libc/include/stdlib.h | |
parent | 271e856a49731edb88427f4a7aeb388825e366c3 (diff) | |
download | newlib-a31a7bad6a26bd64ef017e95d6ee0e994b6ca87b.zip newlib-a31a7bad6a26bd64ef017e95d6ee0e994b6ca87b.tar.gz newlib-a31a7bad6a26bd64ef017e95d6ee0e994b6ca87b.tar.bz2 |
FreeBSD compat. __alloc_size(), __alloc_align()
Restore FreeBSD compatibility for __alloc_size() and __alloc_align().
This is a follow-up to commit e494b560350cabef94126a4478096aae89ae35a0.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'newlib/libc/include/stdlib.h')
-rw-r--r-- | newlib/libc/include/stdlib.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h index 564ce8a..a805736 100644 --- a/newlib/libc/include/stdlib.h +++ b/newlib/libc/include/stdlib.h @@ -140,7 +140,7 @@ void qsort (void *__base, size_t __nmemb, size_t __size, __compar_fn_t _compar); int rand (void); void * realloc (void *__r, size_t __size) _NOTHROW; #if __BSD_VISIBLE -void *reallocarray(void *, size_t, size_t) __result_use_check __alloc_size((2,3)); +void *reallocarray(void *, size_t, size_t) __result_use_check __alloc_size2(2, 3); void * reallocf (void *__r, size_t __size); #endif #if __BSD_VISIBLE || __XSI_VISIBLE >= 4 @@ -324,8 +324,8 @@ extern long double strtold (const char *__restrict, char **__restrict); * If we're in a mode greater than C99, expose C11 functions. */ #if __ISO_C_VISIBLE >= 2011 -void * aligned_alloc(size_t, size_t) __malloc_like __alloc_align((1)) - __alloc_size((2)); +void * aligned_alloc(size_t, size_t) __malloc_like __alloc_align(1) + __alloc_size(2); int at_quick_exit(void (*)(void)); _Noreturn void quick_exit(int); |