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:
authorRich Felker <dalias@aerifal.cx>2012年07月04日 12:18:46 -0400
committerRich Felker <dalias@aerifal.cx>2012年07月04日 12:18:46 -0400
commit98eddc677609c20796982f3171165700613e3cf2 (patch)
treeeee1ee9d882defbc72547a0e71d7a5731ce0ca76 /src
parent25b88f081076a7beb2331ec219640d1a829cdcc4 (diff)
downloadmusl-98eddc677609c20796982f3171165700613e3cf2.tar.gz
make sure getw/putw agree with prototypes by defining _GNU_SOURCE
Diffstat (limited to 'src')
-rw-r--r--src/stdio/getw.c 1
-rw-r--r--src/stdio/putw.c 1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/stdio/getw.c b/src/stdio/getw.c
index de9e985a..73d2c0d5 100644
--- a/src/stdio/getw.c
+++ b/src/stdio/getw.c
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
#include <stdio.h>
int getw(FILE *f)
diff --git a/src/stdio/putw.c b/src/stdio/putw.c
index 137832ee..a6d24292 100644
--- a/src/stdio/putw.c
+++ b/src/stdio/putw.c
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
#include <stdio.h>
int putw(int x, FILE *f)
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月24日 08:27:26 +0000

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