Patch to use strchr, strrchr

Joseph S. Myers jsm28@cam.ac.uk
Thu Nov 2 11:25:00 GMT 2000


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



More information about the Gcc-patches mailing list