[PATCH v3 5/5] libc: Update the guard for quick_exit() and at_quick_exit() fucntions
Mazen Adel Elmessady
mez3n1151@gmail.com
Mon Jun 23 14:33:15 GMT 2025
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
More information about the Newlib
mailing list