headers: Move asprintf & vasprintf to stdio.h.

They're implemented in libroot, not libbsd, and they're now
in POSIX-2024 anyway.
This commit is contained in:
Augustin Cavalier
2025-03-18 18:44:48 -04:00
parent be5f87e9b9
commit 8fadf59d1a
2 changed files with 4 additions and 6 deletions
+2 -6
View File
@@ -6,11 +6,11 @@
#define _BSD_STDIO_H_
#include_next <stdio.h>
#include <features.h>
#include_next <stdio.h>
#if defined(_DEFAULT_SOURCE) || defined(_GNU_SOURCE)
#ifdef _DEFAULT_SOURCE
#ifdef __cplusplus
@@ -19,10 +19,6 @@ extern "C" {
char *fgetln(FILE *stream, size_t *_length);
int asprintf(char **ret, char const *format, ...) _PRINTFLIKE(2,3);
int vasprintf(char **ret, char const *format, va_list ap);
#ifdef __cplusplus
}
#endif