This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to use strchr, strrchr
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: Patch to use strchr, strrchr
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Thu, 2 Nov 2000 19:24:51 +0000 (GMT)
- cc: <gcc-patches at gcc dot gnu dot org>
On Thu, 2 Nov 2000, Richard Henderson wrote:
> You'll want to fix up system.h such that if !HAVE_STRCHR && HAVE_INDEX
> that the appropriate macros get defined. Currently they go the wrong
> direction.
It's been working for years with a mixture of both forms in GCC, using the
strchr from libiberty on systems that don't have one.
--
Joseph S. Myers
jsm28@cam.ac.uk