From: Michael Meissner Date: Mon, 20 Apr 1998 13:30:32 +0000 (+0000) Subject: Add extra protection in case strrchr already defined X-Git-Tag: prereleases/egcs-1.1-prerelease~1617 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b6ede1da67e6c12e5098ad2243a5a7bca31d018;p=thirdparty%2Fgcc.git Add extra protection in case strrchr already defined From-SVN: r19343 --- diff --git a/gcc/protoize.c b/gcc/protoize.c index 754d6c23ce8d..70599879bbc0 100644 --- a/gcc/protoize.c +++ b/gcc/protoize.c @@ -78,11 +78,13 @@ Boston, MA 02111-1307, USA. */ but it normally does declare it. This means that configure thinks we don't need to declare it. Favor using strrchr if it is available. */ +#ifndef strrchr #ifndef HAVE_STRRCHR #ifdef HAVE_RINDEX #define strrchr rindex #endif #endif +#endif /* Include getopt.h for the sake of getopt_long. We don't need the declaration of getopt, and it could conflict