From 571744447c23f91feb6439948f3a619aca850dfb Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Thu, 12 Dec 2013 05:09:18 +0000 Subject: include cleanups: remove unused headers and add feature test macros --- src/stdio/fgetln.c | 1 + src/stdio/fwide.c | 1 + src/stdio/swprintf.c | 1 - src/stdio/swscanf.c | 1 - src/stdio/vfscanf.c | 5 +---- src/stdio/vfwscanf.c | 3 --- 6 files changed, 3 insertions(+), 9 deletions(-) (limited to 'src/stdio') diff --git a/src/stdio/fgetln.c b/src/stdio/fgetln.c index a2e4bd3c..afe12b5d 100644 --- a/src/stdio/fgetln.c +++ b/src/stdio/fgetln.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE #include "stdio_impl.h" #include diff --git a/src/stdio/fwide.c b/src/stdio/fwide.c index 48480685..fdf8e4bb 100644 --- a/src/stdio/fwide.c +++ b/src/stdio/fwide.c @@ -1,3 +1,4 @@ +#include #include "stdio_impl.h" #define SH (8*sizeof(int)-1) diff --git a/src/stdio/swprintf.c b/src/stdio/swprintf.c index cbf83d23..f75eb112 100644 --- a/src/stdio/swprintf.c +++ b/src/stdio/swprintf.c @@ -1,4 +1,3 @@ -#include #include #include diff --git a/src/stdio/swscanf.c b/src/stdio/swscanf.c index c7986096..d893fbac 100644 --- a/src/stdio/swscanf.c +++ b/src/stdio/swscanf.c @@ -1,4 +1,3 @@ -#include #include #include #include "libc.h" diff --git a/src/stdio/vfscanf.c b/src/stdio/vfscanf.c index c0e607f5..0091a8d4 100644 --- a/src/stdio/vfscanf.c +++ b/src/stdio/vfscanf.c @@ -5,10 +5,7 @@ #include #include #include -#include -#include -#include -#include +#include #include "stdio_impl.h" #include "shgetc.h" diff --git a/src/stdio/vfwscanf.c b/src/stdio/vfwscanf.c index 75f04d72..f8f4b70f 100644 --- a/src/stdio/vfwscanf.c +++ b/src/stdio/vfwscanf.c @@ -6,9 +6,6 @@ #include #include #include -#include -#include -#include #include "stdio_impl.h" #include "shgetc.h" -- cgit v1.2.1