diff options
Diffstat (limited to 'libio')
-rw-r--r-- | libio/fwprintf.c | 3 | ||||
-rw-r--r-- | libio/fwscanf.c | 3 | ||||
-rw-r--r-- | libio/getwc.c | 3 | ||||
-rw-r--r-- | libio/stdio.h | 22 |
4 files changed, 23 insertions, 8 deletions
diff --git a/libio/fwprintf.c b/libio/fwprintf.c index c26a2ffcd3..554f1b6389 100644 --- a/libio/fwprintf.c +++ b/libio/fwprintf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1997, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1997, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -17,6 +17,7 @@ Boston, MA 02111-1307, USA. */ #include <stdarg.h> +#include <stdio.h> #include <wchar.h> diff --git a/libio/fwscanf.c b/libio/fwscanf.c index 4510fc5b5f..23dfb2397b 100644 --- a/libio/fwscanf.c +++ b/libio/fwscanf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1997, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1997, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -17,6 +17,7 @@ Boston, MA 02111-1307, USA. */ #include <stdarg.h> +#include <stdio.h> #include <wchar.h> /* Read formatted input from STREAM according to the format string FORMAT. */ diff --git a/libio/getwc.c b/libio/getwc.c index 0829ea0248..77c67c510b 100644 --- a/libio/getwc.c +++ b/libio/getwc.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 95, 96, 97, 98, 99 Free Software Foundation, Inc. +/* Copyright (C) 1993, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc. This file is part of the GNU IO Library. This library is free software; you can redistribute it and/or @@ -24,6 +24,7 @@ General Public License. */ #include "libioP.h" +#include <stdio.h> #include <wchar.h> #undef _IO_getwc diff --git a/libio/stdio.h b/libio/stdio.h index ccab90bc2e..4fcc3b309d 100644 --- a/libio/stdio.h +++ b/libio/stdio.h @@ -17,12 +17,12 @@ Boston, MA 02111-1307, USA. */ /* - * ISO C Standard: 4.9 INPUT/OUTPUT <stdio.h> + * ISO C99 Standard: 7.19 Input/output <stdio.h> */ #ifndef _STDIO_H -#ifndef __need_FILE +#if !defined __need_FILE && !defined __need___FILE # define _STDIO_H 1 # include <features.h> @@ -38,17 +38,29 @@ __BEGIN_DECLS # include <stdarg.h> # include <bits/types.h> +# define __need_FILE +# define __need___FILE #endif /* Don't need FILE. */ -#undef __need_FILE -#ifndef __FILE_defined +#if !defined __FILE_defined && defined __need_FILE -/* The opaque type of streams. */ +/* The opaque type of streams. This is the definition used elsewhere. */ typedef struct _IO_FILE FILE; # define __FILE_defined 1 #endif /* FILE not defined. */ +#undef __need_FILE + + +#if !defined ____FILE_defined && defined __need___FILE + +/* The opaque type of streams. This is the definition used elsewhere. */ +typedef struct _IO_FILE __FILE; + +# define ____FILE_defined 1 +#endif /* __FILE not defined. */ +#undef __need___FILE #ifdef _STDIO_H |