make sure getw/putw agree with prototypes by defining _GNU_SOURCE
authorRich Felker <dalias@aerifal.cx>
Wed, 4 Jul 2012 16:18:46 +0000 (12:18 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 4 Jul 2012 16:18:46 +0000 (12:18 -0400)
src/stdio/getw.c
src/stdio/putw.c

index de9e985ae53a5c9a2d60497d03c64d1a574a5f87..73d2c0d5c6c0914322903e0c30e3f93c0f9336cc 100644 (file)
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
 #include <stdio.h>
 
 int getw(FILE *f)
index 137832ee1b66f1fca9725bfe7d9e64026d73f02a..a6d2429278a67f3df5061c041fc113b1fd2d350e 100644 (file)
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
 #include <stdio.h>
 
 int putw(int x, FILE *f)