musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stdio/asprintf.c 3
-rw-r--r--src/stdio/vasprintf.c 1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/stdio/asprintf.c b/src/stdio/asprintf.c
index 79e59c2d..4ec83534 100644
--- a/src/stdio/asprintf.c
+++ b/src/stdio/asprintf.c
@@ -1,8 +1,7 @@
+#define _GNU_SOURCE
#include <stdio.h>
#include <stdarg.h>
-int vasprintf(char **, const char *, va_list);
-
int asprintf(char **s, const char *fmt, ...)
{
int ret;
diff --git a/src/stdio/vasprintf.c b/src/stdio/vasprintf.c
index f2bbc7aa..68b7246b 100644
--- a/src/stdio/vasprintf.c
+++ b/src/stdio/vasprintf.c
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月12日 02:45:53 +0000

AltStyle によって変換されたページ (->オリジナル) /