]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove miscellaneous __STDC__ conditionals.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 30 Jan 2012 21:20:32 +0000 (21:20 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 30 Jan 2012 21:20:32 +0000 (21:20 +0000)
30 files changed:
ChangeLog
crypt/cert.c
crypt/crypt-entry.c
crypt/crypt_util.c
libio/filedoalloc.c
libio/fileops.c
libio/genops.c
libio/iofclose.c
libio/iofdopen.c
libio/iofopen.c
libio/iofopen64.c
libio/iogetdelim.c
libio/iopopen.c
libio/obprintf.c
libio/oldfileops.c
libio/oldiofclose.c
libio/oldiofdopen.c
libio/oldiofopen.c
libio/oldiopopen.c
libio/wfiledoalloc.c
libio/wgenops.c
locale/programs/xmalloc.c
misc/syslog.c
stdio-common/xbug.c
string/memchr.c
string/memcmp.c
string/memrchr.c
string/rawmemchr.c
sysdeps/posix/getcwd.c
time/strftime_l.c

index 9ca578f94d5c5bcd9d85a2a3846d771167f253cc..a03aee89d829fd6dbde8bd85674dc90092bcc789 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,35 @@
+2012-01-30  Joseph Myers  <joseph@codesourcery.com>
+
+       * crypt/cert.c: Remove __STDC__ conditionals.
+       * crypt/crypt-entry.c: Likewise.
+       * crypt/crypt_util.c: Likewise.
+       * libio/filedoalloc.c: Likewise.
+       * libio/fileops.c: Likewise.
+       * libio/genops.c: Likewise.
+       * libio/iofclose.c: Likewise.
+       * libio/iofdopen.c: Likewise.
+       * libio/iofopen.c: Likewise.
+       * libio/iofopen64.c: Likewise.
+       * libio/iogetdelim.c: Likewise.
+       * libio/iopopen.c: Likewise.
+       * libio/obprintf.c: Likewise.
+       * libio/oldfileops.c: Likewise.
+       * libio/oldiofclose.c: Likewise.
+       * libio/oldiofdopen.c: Likewise.
+       * libio/oldiofopen.c: Likewise.
+       * libio/oldiopopen.c: Likewise.
+       * libio/wfiledoalloc.c: Likewise.
+       * libio/wgenops.c: Likewise.
+       * locale/programs/xmalloc.c: Likewise.
+       * misc/syslog.c: Likewise.
+       * stdio-common/xbug.c: Likewise.
+       * string/memchr.c: Likewise.
+       * string/memcmp.c: Likewise.
+       * string/memrchr.c: Likewise.
+       * string/rawmemchr.c: Likewise.
+       * sysdeps/posix/getcwd.c: Likewise.
+       * time/strftime_l.c: Likewise.
+
 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
 
        * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
index 34d7e4158c2a37224215ba3fc719c9d4371977e4..8c838e919ac9fd389e133fc72f776e98291c2eb0 100644 (file)
 
 int totfails = 0;
 
-#if __STDC__ - 0
 int main (int argc, char *argv[]);
 void get8 (char *cp);
 void put8 (char *cp);
 void good_bye (void) __attribute__ ((noreturn));
-#else
-void get8(), put8();
-#endif
 
 void good_bye ()
 {
index fdddad2c55fa08bbf9da15b23c49983305352a17..97bd14592eedca8aa481d7dd8320470f7d9949bc 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * UFC-crypt: ultra fast crypt(3) implementation
  *
- * Copyright (C) 1991,1992,1993,1996,1997,2007 Free Software Foundation, Inc.
+ * Copyright (C) 1991-1993,1996-1997,2007,2012 Free Software Foundation, Inc.
  *
  * The GNU C Library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -46,7 +46,6 @@
 #include "crypt-private.h"
 
 /* Prototypes for local functions.  */
-#if __STDC__ - 0
 #ifndef __GNU_LIBRARY__
 void _ufc_clearmem (char *start, int cnt);
 #else
@@ -61,7 +60,6 @@ extern char *__sha256_crypt (const char *key, const char *salt);
 extern char *__sha512_crypt_r (const char *key, const char *salt,
                               char *buffer, int buflen);
 extern char *__sha512_crypt (const char *key, const char *salt);
-#endif
 
 /* Define our magic string to mark salt for MD5 encryption
    replacement.  This is meant to be the same as for other MD5 based
index 62c87908ff4bde39b78d1e24639950d802ca38f4..7fcbd8f11663034dd918a5634097a6542f25ba0e 100644 (file)
@@ -49,7 +49,6 @@
 #include "crypt-private.h"
 
 /* Prototypes for local functions.  */
-#if __STDC__ - 0
 #ifndef __GNU_LIBRARY__
 void _ufc_clearmem (char *start, int cnt);
 void _ufc_copymem (char *from, char *to, int cnt);
@@ -59,7 +58,6 @@ STATIC void shuffle_sb (long32 *k, ufc_long saltbits);
 #else
 STATIC void shuffle_sb (long64 *k, ufc_long saltbits);
 #endif
-#endif
 
 
 /*
index 4f62dcd910e7d2e90ef50b97b0b0c539c440815f..6cbe2e2422080e19a7c9ce3693e0f27a3a18e6b9 100644 (file)
@@ -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
 #include "libioP.h"
 #include <sys/types.h>
 #include <sys/stat.h>
-#ifdef __STDC__
 #include <stdlib.h>
 #include <unistd.h>
-#endif
 
 #ifdef _LIBC
 # undef isatty
index a6f7cbad82e4d6d96b0d08db6dedc4cafa1be34b..201d063bc0c87e85d16e52f2118329fd8ba728c9 100644 (file)
@@ -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"
index bb40c3435643b3a017a3a52bee2b3b77f41ca228..aa504565415f0c3ef6dab9337caf83300953b590 100644 (file)
@@ -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
index aa2ba400646b38961be23cf096ff40de03aa39f0..64e025b97015ffa8e994c77381cbe96ebde72d39 100644 (file)
@@ -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>
index 7f6e593e80a47adeaecc55716ab4ac195be3d136..59f44147a34be77d8ccf1a0a172647bce6268f18 100644 (file)
@@ -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>
 
index 5051f7a7afcb017dd072ad7c84da62124be15508..15374188bdcf481fda97a262b493884006bea669 100644 (file)
@@ -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.
 
    in files containing the exception.  */
 
 #include "libioP.h"
-#ifdef __STDC__
 #include <stdlib.h>
 #include <stddef.h>
-#endif
 #ifdef _LIBC
 # include <shlib-compat.h>
 #else
index 69e62b8cda763c5e7d59185782ac6308f65b8ae3..fe4dc99c92f5c8149050f04167463e3d6fdd412c 100644 (file)
@@ -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)
index a362bf978a1d32917aeb566bf1ef4371f980812c..3ee7eac873d81706ea9066242c9ee0fa8f97f9ca 100644 (file)
@@ -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>
index 1a5cc0f59262df51f31527f4e2189e8bf56d79ae..1b2b654388b9ef333a6226b42ff9a980efbcffaa 100644 (file)
@@ -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>
index c715c2d4a5d6c8cd0f37dccc5cd3e541d1b3e1d7..d099e56a5392af706a8ecc7923a99fe9c1e62249 100644 (file)
@@ -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>
index 3e3daa8ae1f953229f5cff779e0abc1c8c4eccb5..900d3029655e272c273f8852fa0854ac5ce3e7fe 100644 (file)
@@ -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
index 62c31541188eda020a056dab4806acf4352e26d3..34829eae9bb708e784aba8b472ac818968a6998a 100644 (file)
@@ -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
index a1fc6675a4d4bd07809bf43526a26989c93368e0..824c7be3e864b214347b58bb94dc36319d0bf669 100644 (file)
@@ -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>
 
index c761580a784dae7753b439f7c22db1f220778ab3..fcbc44366db4e90e984c818b92172654c9fd48e8 100644 (file)
@@ -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 *
index 2fa1ac5a370ea9e5c23e778be3d9be1f61e6722d..fe09aed846ac8681365e0aff0cd9a2179b3e365b 100644 (file)
@@ -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
index 67a05175b2367fd1cc7247cd591596c22031322c..168bdddc2e46ddc648a3cfc0051bc93cf9d8836a 100644 (file)
@@ -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.
 
 #include "libioP.h"
 #include <sys/types.h>
 #include <sys/stat.h>
-#ifdef __STDC__
 #include <stdlib.h>
 #include <unistd.h>
-#endif
 
 #ifdef _LIBC
 # undef isatty
index e2adedd6d4d07c9f66b870de644d6c3d84848063..d9709cab8d65048113bef9aa2217e7a0a5966467 100644 (file)
@@ -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>
 
index a2eeda79b88afee480519d1d2202c6d641def789..de2767d1daae7c1bac16100b0ceba1d9f5950bdf 100644 (file)
@@ -1,5 +1,5 @@
 /* xmalloc.c -- malloc with out of memory checking
-   Copyright (C) 1990,91,92,93,94,95,96,97,2004,2005
+   Copyright (C) 1990,91,92,93,94,95,96,97,2004,2005,2012
    Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
 #include <config.h>
 #endif
 
-#if __STDC__
 #define VOID void
-#else
-#define VOID char
-#endif
 
 #include <sys/types.h>
 
index 7156b4f9550292f6f94ff9cc4d57f2a3d2136269..57d4db9b5b4b4ff286da6bc6a421776ae47aa9c2 100644 (file)
@@ -51,11 +51,7 @@ static char sccsid[] = "@(#)syslog.c 8.4 (Berkeley) 3/18/94";
 #include <signal.h>
 #include <locale.h>
 
-#if __STDC__
 #include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 
 #include <libio/iolibio.h>
 #include <math_ldbl_opt.h>
index a04bfc4fd031901847f9c46bf0a319bd8e22226f..76a8c547268d4f260d6fa2130549f3de897c7c18 100644 (file)
@@ -8,11 +8,9 @@ typedef struct _Buffer {
   int  room, used;
 } Buffer;
 
-#if __STDC__ - 0
 void InitBuffer (Buffer *b);
 void AppendToBuffer (register Buffer *b, const char *str, register int len);
 void ReadFile (register Buffer *buffer, FILE *input);
-#endif
 
 #define INIT_BUFFER_SIZE 10000
 
index f3098c775af12df57e49047420bf354899ecaa81..28de95741d6785d96b37f3946d882b5e3f6d6d89 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,93,96,97,99,2000,2003 Free Software Foundation, Inc.
+/* Copyright (C) 1991,93,96,97,99,2000,2003,2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Based on strlen implementation by Torbjorn Granlund (tege@sics.se),
    with help from Dan Sahlin (dan@sics.se) and
 #endif
 
 #undef __ptr_t
-#if defined (__cplusplus) || (defined (__STDC__) && __STDC__)
-# define __ptr_t void *
-#else /* Not C++ or ANSI C.  */
-# define __ptr_t char *
-#endif /* C++ or ANSI C.  */
+#define __ptr_t void *
 
 #if defined _LIBC
 # include <string.h>
index 2f8cf344af6546723f684fe97e4783bbfbbc1bce..d2ec1c279ccb6a2f5f51e9cedabdff205e1d29e4 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,1993,1995,1997,1998,2003,2004
+/* Copyright (C) 1991,1993,1995,1997,1998,2003,2004,2012
    Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Torbjorn Granlund (tege@sics.se).
 #endif
 
 #undef __ptr_t
-#if defined __cplusplus || (defined __STDC__ && __STDC__)
-# define __ptr_t       void *
-#else /* Not C++ or ANSI C.  */
-# undef        const
-# define const
-# define __ptr_t       char *
-#endif /* C++ or ANSI C.  */
+#define __ptr_t        void *
 
 #if defined HAVE_STRING_H || defined _LIBC
 # include <string.h>
index 498a4376ea877842d879768d39a946952a2979a4..a19f8e61d70bfd3feffa2a7bf9e995641a803f3a 100644 (file)
@@ -1,5 +1,5 @@
 /* memrchr -- find the last occurrence of a byte in a memory block
-   Copyright (C) 1991, 93, 96, 97, 99, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1991, 93, 96, 97, 99, 2000, 2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Based on strlen implementation by Torbjorn Granlund (tege@sics.se),
    with help from Dan Sahlin (dan@sics.se) and
 #endif
 
 #undef __ptr_t
-#if defined __cplusplus || (defined __STDC__ && __STDC__)
-# define __ptr_t void *
-#else /* Not C++ or ANSI C.  */
-# define __ptr_t char *
-#endif /* C++ or ANSI C.  */
+#define __ptr_t void *
 
 #if defined _LIBC
 # include <string.h>
index cb00ad7e90a01f77898c2fb7eefa12c5f80e464b..a7c9ec67d0d90028805155ead8ab53757faaf068 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,93,96,97,99,2000,2002 Free Software Foundation, Inc.
+/* Copyright (C) 1991,93,96,97,99,2000,2002,2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Based on strlen implementation by Torbjorn Granlund (tege@sics.se),
    with help from Dan Sahlin (dan@sics.se) and
 #endif
 
 #undef __ptr_t
-#if defined (__cplusplus) || (defined (__STDC__) && __STDC__)
-# define __ptr_t void *
-#else /* Not C++ or ANSI C.  */
-# define __ptr_t char *
-#endif /* C++ or ANSI C.  */
+#define __ptr_t void *
 
 #if defined (_LIBC)
 # include <string.h>
index 847abc56cac617e43b52fa44be3690a45fabde80..007f7e6daa564ba6696009741a10a3d66cd33de9 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,92,93,94,95,96,97,98,99,11 Free Software Foundation, Inc.
+/* Copyright (C) 1991-1999,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
@@ -192,10 +192,6 @@ extern char *alloca ();
 # define size_t        unsigned int
 #endif
 
-#if !__STDC__ && !defined const
-# define const
-#endif
-
 #ifndef __GNU_LIBRARY__
 # define __lstat64     stat64
 #endif
index 08c2aeb32be6421cb8075dfae3579da4ee02644a..b22129945b28d44be77d095d98993fd25758d650 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2004, 2007-2009, 2010 Free Software Foundation, Inc.
+/* Copyright (C) 2002,2004,2007-2009,2010,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
@@ -124,11 +124,7 @@ extern char *tzname[];
 #endif
 
 #ifndef PTR
-# ifdef __STDC__
-#  define PTR void *
-# else
-#  define PTR char *
-# endif
+# define PTR void *
 #endif
 
 #ifndef CHAR_BIT