From: Ulrich Drepper Date: Sun, 28 Jan 2001 09:37:21 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_2_2~158 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bf3d361faff5e9a8358939e66e9b076909c02ad;p=platform%2Fupstream%2Fglibc.git Update. * conform/conformtest.pl: Undo last change. Define $mustprepend{"stdio.h"}. * libio/stdio.h: Define va_list correctly. --- diff --git a/ChangeLog b/ChangeLog index 1f0d25f..49b2dc5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,8 @@ 2001-01-28 Ulrich Drepper - * conform/conformtest.pl: Define $mustprepend{"stdio.h"}. - * libio/stdio.h: Always define __need___va_list. + * conform/conformtest.pl: Undo last change. Define + $mustprepend{"stdio.h"}. + * libio/stdio.h: Define va_list correctly. * conform/data/pthread.h-data: Make priority protocol related functions optional. Fix typos. diff --git a/conform/conformtest.pl b/conform/conformtest.pl index 5a15760..aa61d89 100644 --- a/conform/conformtest.pl +++ b/conform/conformtest.pl @@ -56,7 +56,7 @@ $CFLAGS{"XOPEN2K"} = "-I. '-D__attribute__(x)=' -D_XOPEN_SOURCE=600"; $mustprepend{'regex.h'} = "#include \n"; $mustprepend{'sched.h'} = "#include \n"; $mustprepend{'signal.h'} = "#include \n"; -$mustprepend{'stdio.h'} = "#include \n"; +$mustprepend{'stdio.h'} = "#include \n"; $mustprepend{'wchar.h'} = "#include \n"; $mustprepend{'wordexp.h'} = "#include \n"; @@ -668,9 +668,8 @@ while ($#headers >= 0) { # Remember that this name is allowed. push @allow, $type; - # Generate a program to test for the availability of this constant. + # Generate a program to test for the availability of this type. open (TESTFILE, ">$fnamebase.c"); - print TESTFILE "$prepend"; print TESTFILE "#include <$h>\n"; if ($maybe_opaque == 1) { print TESTFILE "$type *a;\n"; diff --git a/libio/stdio.h b/libio/stdio.h index af9ab95..4c8cea6 100644 --- a/libio/stdio.h +++ b/libio/stdio.h @@ -32,9 +32,6 @@ __BEGIN_DECLS # define __need_NULL # include -# define __need___va_list -# include - # include # define __need_FILE # define __need___FILE @@ -66,6 +63,17 @@ typedef struct _IO_FILE __FILE; #include +#ifdef __USE_XOPEN +# ifdef __GNUC__ +# ifndef _VA_LIST_DEFINED +typedef _G_va_list va_list; +# define _VA_LIST_DEFINED +# endif +# else +# include +# endif +#endif + /* The type of the second argument to `fgetpos' and `fsetpos'. */ #ifndef __USE_FILE_OFFSET64 typedef _G_fpos_t fpos_t;