This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: getopt.h vs java lossage
- To: drepper at cygnus dot com (Ulrich Drepper)
- Subject: Re: getopt.h vs java lossage
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Fri, 11 Sep 1998 03:46:20 -0600
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
> > But long term someone needs to fix gnu getopt and all the code
> > that depends on those bogus #defines.
>
> The change will be to protect the definitions of struct option, the
> *_argument macros, and the extra prototypes using
>
> #ifdef _GNU_SOURCE
>
>
> If every program which relies on the extensions uses as suggested
> -D_GNU_SOURCE there should not be any problem.
Sounds like the right way to go.
In any event, java should be happier now that I've checked in a fix
to avoid the problem #defines :-)
Jeff