This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc's fixincludes and stdio.h


On Mon, Jan 27, 2003 at 12:18:59PM +1100, Greg Schafer wrote:
> fixincludes insists on doing:-
> 
> @@ -73,9 +82,9 @@
> 
>  #ifdef __USE_XOPEN
>  # ifdef __GNUC__
> -#  ifndef _VA_LIST_DEFINED
> -typedef _G_va_list va_list;
> -#   define _VA_LIST_DEFINED
> +#  ifndef _DUMMY_VA_LIST_DEFINED
> +typedef _G_va_list __not_va_list__;
> +#   define _DUMMY_VA_LIST_DEFINED
>  #  endif
>  # else
>  #  include <stdarg.h>
> 
> 
> The fixincludes source says:-
> 
> "Don't use or define the name va_list in stdio.h.
> This is for ANSI and also to interoperate properly with gcc's varargs.h."
> 
> I cannot figure out whether the change is good, bad, bogus or irrelevant.
> Could somebody please clue me in?

Some further info. This came up once before:-

http://sources.redhat.com/ml/libc-alpha/2001-05/msg00239.html

Nobody bothered to answer then. If the fix is not required for glibc, then
it would be good if someone could confirm it, so that the fixincludes
maintainer can add "_G_va_list" to the bypass list.

Thanks
Greg


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]