diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-01-22 02:06:58 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-01-22 02:06:58 +0000 |
commit | 67289b625ef9a57c2f08578dc9ac827a14a3883f (patch) | |
tree | d757bbdb4b11c9b4c136d99e350c31e7041b2ca1 /readline/chardefs.h | |
parent | d575ddc0ef874292672001dc58848befa5325115 (diff) | |
download | ppe42-binutils-67289b625ef9a57c2f08578dc9ac827a14a3883f.tar.gz ppe42-binutils-67289b625ef9a57c2f08578dc9ac827a14a3883f.zip |
* chardefs.h, tilde.c: Just declare strrchr rather than trying to
include a system header.
Diffstat (limited to 'readline/chardefs.h')
-rw-r--r-- | readline/chardefs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/readline/chardefs.h b/readline/chardefs.h index 241567ea3f..f7df2501e2 100644 --- a/readline/chardefs.h +++ b/readline/chardefs.h @@ -4,11 +4,19 @@ #include <ctype.h> +#if 0 +/* Getting the correct definition of HAVE_STRING_H is harder than just + declaring them ourselves. CYGNUS LOCAL. */ #if defined (HAVE_STRING_H) # include <string.h> #else # include <strings.h> #endif /* HAVE_STRING_H */ +#else /* not 0 */ +/* We don't worry about declaring functions where we don't use the return + value (e.g. strcpy) or which return int. */ +extern char *strrchr (); +#endif /* not 0 */ #ifndef savestring #if 0 |