[Freeciv-Dev] Re: gcc poisoning
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Thu, Oct 24, 2002 at 10:19:08PM +0000, Per I. Mathisen wrote:
> On Thu, 24 Oct 2002, Raimar Falke wrote:
> > > So basically I want you to chime in if you think gcc poisoning is
> > > something worth putting in, and then I'll do the required autoconf work.
> >
> > Why autoconf work?
> ...
> > > +/* Poison functions to prevent them from being used (portability) */
> > > +#pragma GCC poison snprintf vsnprintf strcasecmp strncasecmp usleep
> > > +#pragma GCC poison strerror gethostname
> >
> > What does an old gcc thinks about these?
>
> Old gcc gives warnings whenever shared.h is included, which is very, very
> often. That is very, very many warnings... so unless there is a way to
> #ifdef this using some gcc macro magic, we will have to use autoconf.
Just grep your /usr/include for __GNUC__, __GNUC_MINOR__ and
__GNUC_PATCHLEVEL__ and you will found enough examples.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
1 + 1 = 3, for large values of 1
|
|