[PATCH v5 5/5] libc: Update the guard for quick_exit() and at_quick_exit() functions
Mazen Adel Elmessady <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
Updated the guard for stdlib functions to use the POSIX Issue 8 guard added in 2024. --- newlib/libc/include/stdlib.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h index 0690a0377..55b20fac9 100644 --- a/newlib/libc/include/stdlib.h +++ b/newlib/libc/include/stdlib.h @@ -333,10 +333,13 @@ extern long double strtold (const char *__restrict, char **__restrict); #if __ISO_C_VISIBLE >= 2011 void * aligned_alloc(size_t, size_t) __malloc_like __alloc_align(1) __alloc_size(2) __result_use_check; +#endif /* __ISO_C_VISIBLE >= 2011 */ + +#if (__ISO_C_VISIBLE >= 2011 || __POSIX_VISIBLE >= 202405) int at_quick_exit(void (*)(void)); _Noreturn void quick_exit(int); -#endif /* __ISO_C_VISIBLE >= 2011 */ +#endif /* __ISO_C_VISIBLE >= 2011 || __POSIX_VISIBLE >= 202405 */ _END_STD_C -- 2.48.1