This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Reducing build warnings (2)
- To: Bruno Haible <haible at ilog dot fr>
- Subject: Re: [patch] Reducing build warnings (2)
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 29 Mar 1998 23:54:57 -0700
- Cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199801021305.OAA07456@halles.ilog.fr>you write:
>
> Hi,
>
> Second step: Include <string.h> in order to declare `strcat' and similar
> functions. libiberty/cplus-dem.c already includes <string.h> unconditionall
> y,
> and this apparently succeeds on all platforms supported by egcs, hence I'm
> taking this same approach instead of the old-style (pre-1990)
>
> #ifdef HAVE_STRING_H
> #include <string.h>
> #else
> #ifdef HAVE_STRINGS_H
> #include <strings.h>
> #endif
> #endif
>
>
> Thu Jan 1 13:07:51 1998 Bruno Haible <bruno@linuix.mathematik.uni-karlsr
> uhe.de>
>
> * prefix.c: Include string.h.
[ ... ]
I believe this is also unnecessary with the system.h conversion.
jeff