From 835f9f950e2f6059532bd9ab9857a856ed21a4fd Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 8 Nov 2012 16:39:41 -0500 Subject: clean up stdio_impl.h this header evolved to facilitate the extremely lazy practice of omitting explicit includes of the necessary headers in individual stdio source files; not only was this sloppy, but it also increased build time. now, stdio_impl.h is only including the headers it needs for its own use; any further headers needed by source files are included directly where needed. --- src/stdlib/strtol.c | 3 +++ src/stdlib/wcstod.c | 1 + src/stdlib/wcstol.c | 4 ++++ 3 files changed, 8 insertions(+) (limited to 'src/stdlib') diff --git a/src/stdlib/strtol.c b/src/stdlib/strtol.c index 23a2f3b6..7ee88794 100644 --- a/src/stdlib/strtol.c +++ b/src/stdlib/strtol.c @@ -1,6 +1,9 @@ #include "stdio_impl.h" #include "intscan.h" #include "shgetc.h" +#include +#include +#include static unsigned long long strtox(const char *s, char **p, int base, unsigned long long lim) { diff --git a/src/stdlib/wcstod.c b/src/stdlib/wcstod.c index 03670b0b..83f308d3 100644 --- a/src/stdlib/wcstod.c +++ b/src/stdlib/wcstod.c @@ -1,6 +1,7 @@ #include "shgetc.h" #include "floatscan.h" #include "stdio_impl.h" +#include /* This read function heavily cheats. It knows: * (1) len will always be 1 diff --git a/src/stdlib/wcstol.c b/src/stdlib/wcstol.c index 3d7c97da..4443f577 100644 --- a/src/stdlib/wcstol.c +++ b/src/stdlib/wcstol.c @@ -1,6 +1,10 @@ #include "stdio_impl.h" #include "intscan.h" #include "shgetc.h" +#include +#include +#include +#include /* This read function heavily cheats. It knows: * (1) len will always be 1 -- cgit v1.2.1