1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Remove miscellaneous __STDC__ conditionals.

This commit is contained in:
Joseph Myers
2012-01-30 21:20:32 +00:00
parent 3b1004624e
commit c8a89e7dd5
30 changed files with 67 additions and 110 deletions

View 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
@ -26,11 +26,7 @@
#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>

View 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).
@ -23,13 +23,7 @@
#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>

View 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
@ -29,11 +29,7 @@
#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>

View 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
@ -26,11 +26,7 @@
#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>