diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-02-03 21:33:40 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-02-03 21:33:40 +0000 |
commit | f045469c915fb1202429c5a7f9ba0465e5308592 (patch) | |
tree | dced989469782a0817eaf1721694621cd9675688 /lib | |
parent | 6dc84f8396918cd940723737672d5a74638bca21 (diff) | |
download | coreutils-f045469c915fb1202429c5a7f9ba0465e5308592.tar.xz |
[!defined _LIBC]: Include "memrchr.h" rather than <string.h>.
Don't bother including stddef.h.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/memrchr.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/memrchr.c b/lib/memrchr.c index e34d65ed0..ae8dabcd0 100644 --- a/lib/memrchr.c +++ b/lib/memrchr.c @@ -1,7 +1,7 @@ /* memrchr -- find the last occurrence of a byte in a memory block - Copyright (C) 1991, 1993, 1996, 1997, 1999, 2000, 2003, 2004 Free - Software Foundation, Inc. + Copyright (C) 1991, 1993, 1996, 1997, 1999, 2000, 2003, 2004, 2005 + Free Software Foundation, Inc. Based on strlen implementation by Torbjorn Granlund (tege@sics.se), with help from Dan Sahlin (dan@sics.se) and @@ -27,13 +27,11 @@ # include <config.h> #endif -#include <string.h> - -#include <stddef.h> - #if defined _LIBC +# include <string.h> # include <memcopy.h> #else +# include "memrchr.h" # define reg_char char #endif |