diff options
author | Joseph Myers <joseph@codesourcery.com> | 2012-01-30 21:20:32 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-01-30 21:20:32 +0000 |
commit | c8a89e7dd5cab24242cc9050387bd5bb902da11a (patch) | |
tree | 7aeca9797fb026f8df75c8285e3a1bfed6180da7 /libio | |
parent | 3b1004624e54cc2fefd034ff80d5dea4b6db764f (diff) | |
download | glibc-c8a89e7dd5cab24242cc9050387bd5bb902da11a.zip glibc-c8a89e7dd5cab24242cc9050387bd5bb902da11a.tar.gz glibc-c8a89e7dd5cab24242cc9050387bd5bb902da11a.tar.bz2 |
Remove miscellaneous __STDC__ conditionals.
Diffstat (limited to 'libio')
-rw-r--r-- | libio/filedoalloc.c | 4 | ||||
-rw-r--r-- | libio/fileops.c | 4 | ||||
-rw-r--r-- | libio/genops.c | 4 | ||||
-rw-r--r-- | libio/iofclose.c | 4 | ||||
-rw-r--r-- | libio/iofdopen.c | 6 | ||||
-rw-r--r-- | libio/iofopen.c | 4 | ||||
-rw-r--r-- | libio/iofopen64.c | 4 | ||||
-rw-r--r-- | libio/iogetdelim.c | 5 | ||||
-rw-r--r-- | libio/iopopen.c | 4 | ||||
-rw-r--r-- | libio/obprintf.c | 4 | ||||
-rw-r--r-- | libio/oldfileops.c | 4 | ||||
-rw-r--r-- | libio/oldiofclose.c | 5 | ||||
-rw-r--r-- | libio/oldiofdopen.c | 6 | ||||
-rw-r--r-- | libio/oldiofopen.c | 4 | ||||
-rw-r--r-- | libio/oldiopopen.c | 4 | ||||
-rw-r--r-- | libio/wfiledoalloc.c | 4 | ||||
-rw-r--r-- | libio/wgenops.c | 5 |
17 files changed, 22 insertions, 53 deletions
diff --git a/libio/filedoalloc.c b/libio/filedoalloc.c index 4f62dcd..6cbe2e2 100644 --- a/libio/filedoalloc.c +++ b/libio/filedoalloc.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1997, 2001, 2002, 2011 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1997, 2001-2002, 2011-2012 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 @@ -62,10 +62,8 @@ #include "libioP.h" #include <sys/types.h> #include <sys/stat.h> -#ifdef __STDC__ #include <stdlib.h> #include <unistd.h> -#endif #ifdef _LIBC # undef isatty diff --git a/libio/fileops.c b/libio/fileops.c index a6f7cba..201d063 100644 --- a/libio/fileops.c +++ b/libio/fileops.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1995, 1997-2005, 2006, 2007, 2008, 2009, 2011 +/* Copyright (C) 1993, 1995, 1997-2005, 2006, 2007, 2008, 2009, 2011-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Per Bothner <bothner@cygnus.com>. @@ -40,9 +40,7 @@ #include <string.h> #include <errno.h> #include <unistd.h> -#ifdef __STDC__ #include <stdlib.h> -#endif #if _LIBC # include "../wcsmbs/wcsmbsload.h" # include "../iconv/gconv_charset.h" diff --git a/libio/genops.c b/libio/genops.c index bb40c34..aa50456 100644 --- a/libio/genops.c +++ b/libio/genops.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993,1995,1997-2002, 2003, 2004, 2006, 2007, 2011 +/* Copyright (C) 1993,1995,1997-2002, 2003, 2004, 2006, 2007, 2011-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -29,9 +29,7 @@ /* Generic or default I/O operations. */ #include "libioP.h" -#ifdef __STDC__ #include <stdlib.h> -#endif #include <string.h> #include <stdbool.h> #ifdef _LIBC diff --git a/libio/iofclose.c b/libio/iofclose.c index aa2ba40..64e025b 100644 --- a/libio/iofclose.c +++ b/libio/iofclose.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993,1995,1997-2004,2005 Free Software Foundation, Inc. +/* Copyright (C) 1993,1995,1997-2004,2005,2012 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 @@ -26,9 +26,7 @@ in files containing the exception. */ #include "libioP.h" -#ifdef __STDC__ #include <stdlib.h> -#endif #if _LIBC # include "../iconv/gconv_int.h" # include <shlib-compat.h> diff --git a/libio/iofdopen.c b/libio/iofdopen.c index 7f6e593..59f4414 100644 --- a/libio/iofdopen.c +++ b/libio/iofdopen.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993,1994,1997,1998,1999,2000,2002,2003,2010 +/* Copyright (C) 1993,1994,1997,1998,1999,2000,2002,2003,2010,2012 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -26,9 +26,7 @@ This exception applies to code released by its copyright holders in files containing the exception. */ -#ifdef __STDC__ -# include <stdlib.h> -#endif +#include <stdlib.h> #include "libioP.h" #include <fcntl.h> diff --git a/libio/iofopen.c b/libio/iofopen.c index 5051f7a..1537418 100644 --- a/libio/iofopen.c +++ b/libio/iofopen.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993,1997,1998,1999,2000,2002,2003 +/* Copyright (C) 1993,1997,1998,1999,2000,2002,2003,2012 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -27,10 +27,8 @@ in files containing the exception. */ #include "libioP.h" -#ifdef __STDC__ #include <stdlib.h> #include <stddef.h> -#endif #ifdef _LIBC # include <shlib-compat.h> #else diff --git a/libio/iofopen64.c b/libio/iofopen64.c index 69e62b8..fe4dc99 100644 --- a/libio/iofopen64.c +++ b/libio/iofopen64.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1997, 1999, 2000, 2002 Free Software Foundation, Inc. +/* Copyright (C) 1993,1997,1999,2000,2002,2012 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 @@ -26,9 +26,7 @@ in files containing the exception. */ #include "libioP.h" -#ifdef __STDC__ #include <stdlib.h> -#endif _IO_FILE * _IO_fopen64 (filename, mode) diff --git a/libio/iogetdelim.c b/libio/iogetdelim.c index a362bf9..3ee7eac 100644 --- a/libio/iogetdelim.c +++ b/libio/iogetdelim.c @@ -1,4 +1,5 @@ -/* Copyright (C) 1994,1996-1998,2001,2003,2005 Free Software Foundation, Inc. +/* Copyright (C) 1994,1996-1998,2001,2003,2005,2012 + 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 @@ -25,9 +26,7 @@ This exception applies to code released by its copyright holders in files containing the exception. */ -#ifdef __STDC__ #include <stdlib.h> -#endif #include "libioP.h" #include <string.h> #include <errno.h> diff --git a/libio/iopopen.c b/libio/iopopen.c index 1a5cc0f..1b2b654 100644 --- a/libio/iopopen.c +++ b/libio/iopopen.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1997-2002, 2003, 2004, 2007, 2008 +/* Copyright (C) 1993, 1997-2002, 2003, 2004, 2007, 2008, 2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Per Bothner <bothner@cygnus.com>. @@ -34,9 +34,7 @@ #if _IO_HAVE_SYS_WAIT #include <signal.h> #include <unistd.h> -#ifdef __STDC__ #include <stdlib.h> -#endif #ifdef _LIBC # include <unistd.h> # include <shlib-compat.h> diff --git a/libio/obprintf.c b/libio/obprintf.c index c715c2d..d099e56 100644 --- a/libio/obprintf.c +++ b/libio/obprintf.c @@ -1,5 +1,5 @@ /* Print output of stream to given obstack. - Copyright (C) 1996,1997,1999,2000,2001,2002,2003,2004,2005,2006,2008 + Copyright (C) 1996,1997,1999,2000,2001,2002,2003,2004,2005,2006,2008,2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. @@ -20,9 +20,7 @@ 02111-1307 USA. */ -#ifdef __STDC__ #include <stdlib.h> -#endif #include "libioP.h" #include "strfile.h" #include <assert.h> diff --git a/libio/oldfileops.c b/libio/oldfileops.c index 3e3daa8..900d302 100644 --- a/libio/oldfileops.c +++ b/libio/oldfileops.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1995, 1997-2004, 2005, 2007, 2011 +/* Copyright (C) 1993, 1995, 1997-2004, 2005, 2007, 2011-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Per Bothner <bothner@cygnus.com>. @@ -42,9 +42,7 @@ #include <sys/stat.h> #include <string.h> #include <errno.h> -#ifdef __STDC__ #include <stdlib.h> -#endif #ifndef errno extern int errno; #endif diff --git a/libio/oldiofclose.c b/libio/oldiofclose.c index 62c3154..34829ea 100644 --- a/libio/oldiofclose.c +++ b/libio/oldiofclose.c @@ -1,4 +1,5 @@ -/* Copyright (C) 1993,1995,1997-2002,2004,2005 Free Software Foundation, Inc. +/* Copyright (C) 1993,1995,1997-2002,2004,2005,2012 + 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 @@ -30,9 +31,7 @@ #define _IO_USE_OLD_IO_FILE #include "libioP.h" -#ifdef __STDC__ #include <stdlib.h> -#endif int attribute_compat_text_section diff --git a/libio/oldiofdopen.c b/libio/oldiofdopen.c index a1fc667..824c7be 100644 --- a/libio/oldiofdopen.c +++ b/libio/oldiofdopen.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993,94,97,99,2000,2002,2003,2004 +/* Copyright (C) 1993,94,97,99,2000,2002,2003,2004,2012 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -30,9 +30,7 @@ #if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1) #define _IO_USE_OLD_IO_FILE -#ifdef __STDC__ -# include <stdlib.h> -#endif +#include <stdlib.h> #include "libioP.h" #include <fcntl.h> diff --git a/libio/oldiofopen.c b/libio/oldiofopen.c index c761580..fcbc443 100644 --- a/libio/oldiofopen.c +++ b/libio/oldiofopen.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993,1997,1999,2000,2002,2003,2004 +/* Copyright (C) 1993,1997,1999,2000,2002,2003,2004,2012 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -31,9 +31,7 @@ #define _IO_USE_OLD_IO_FILE #include "libioP.h" -#ifdef __STDC__ #include <stdlib.h> -#endif _IO_FILE * diff --git a/libio/oldiopopen.c b/libio/oldiopopen.c index 2fa1ac5..fe09aed 100644 --- a/libio/oldiopopen.c +++ b/libio/oldiopopen.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998-2002, 2004 Free Software Foundation, Inc. +/* Copyright (C) 1998-2002, 2004, 2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Per Bothner <bothner@cygnus.com>. @@ -34,9 +34,7 @@ #if _IO_HAVE_SYS_WAIT #include <signal.h> #include <unistd.h> -#ifdef __STDC__ #include <stdlib.h> -#endif #ifdef _LIBC # include <unistd.h> #endif diff --git a/libio/wfiledoalloc.c b/libio/wfiledoalloc.c index 67a0517..168bddd 100644 --- a/libio/wfiledoalloc.c +++ b/libio/wfiledoalloc.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1997, 1999, 2000, 2002, 2006 +/* Copyright (C) 1993, 1997, 1999, 2000, 2002, 2006, 2012 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -63,10 +63,8 @@ #include "libioP.h" #include <sys/types.h> #include <sys/stat.h> -#ifdef __STDC__ #include <stdlib.h> #include <unistd.h> -#endif #ifdef _LIBC # undef isatty diff --git a/libio/wgenops.c b/libio/wgenops.c index e2adedd..d9709ca 100644 --- a/libio/wgenops.c +++ b/libio/wgenops.c @@ -1,4 +1,5 @@ -/* Copyright (C) 1993,1995,1997-2002,2004,2006 Free Software Foundation, Inc. +/* Copyright (C) 1993,1995,1997-2002,2004,2006,2012 + Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Ulrich Drepper <drepper@cygnus.com>. Based on the single byte version by Per Bothner <bothner@cygnus.com>. @@ -30,9 +31,7 @@ /* Generic or default I/O operations. */ #include "libioP.h" -#ifdef __STDC__ #include <stdlib.h> -#endif #include <string.h> #include <wchar.h> |