diff --git a/arch/arm/bits/alltypes.h.sh b/arch/arm/bits/alltypes.h.sh index 62e0327c751229bc38195926066844a852f20c19..748b8730b44a98f6a4223b5265eb4de1830991f0 100755 --- a/arch/arm/bits/alltypes.h.sh +++ b/arch/arm/bits/alltypes.h.sh @@ -21,6 +21,7 @@ TYPEDEF int ssize_t; TYPEDEF int ptrdiff_t; TYPEDEF __builtin_va_list va_list; +TYPEDEF __builtin_va_list __isoc_va_list; #ifndef __cplusplus TYPEDEF unsigned wchar_t; diff --git a/arch/i386/bits/alltypes.h.sh b/arch/i386/bits/alltypes.h.sh index 76c50ec1a43e138729de9dfccb8d3c6faf049d14..85776a83feb98ff667211bee0904004f639bc2f3 100755 --- a/arch/i386/bits/alltypes.h.sh +++ b/arch/i386/bits/alltypes.h.sh @@ -22,8 +22,10 @@ TYPEDEF int ptrdiff_t; #if __GNUC__ >= 3 TYPEDEF __builtin_va_list va_list; +TYPEDEF __builtin_va_list __isoc_va_list; #else TYPEDEF struct __va_list * va_list; +TYPEDEF struct __va_list * __isoc_va_list; #endif #ifndef __cplusplus diff --git a/arch/microblaze/bits/alltypes.h.sh b/arch/microblaze/bits/alltypes.h.sh index 268321a1b13edd535b664c2255340a84ac91f01f..a5acd494cc6aa882c79715ff16b759ef1f43c79b 100755 --- a/arch/microblaze/bits/alltypes.h.sh +++ b/arch/microblaze/bits/alltypes.h.sh @@ -21,6 +21,7 @@ TYPEDEF int ssize_t; TYPEDEF int ptrdiff_t; TYPEDEF __builtin_va_list va_list; +TYPEDEF __builtin_va_list __isoc_va_list; #ifndef __cplusplus TYPEDEF int wchar_t; diff --git a/arch/mips/bits/alltypes.h.sh b/arch/mips/bits/alltypes.h.sh index 268321a1b13edd535b664c2255340a84ac91f01f..a5acd494cc6aa882c79715ff16b759ef1f43c79b 100755 --- a/arch/mips/bits/alltypes.h.sh +++ b/arch/mips/bits/alltypes.h.sh @@ -21,6 +21,7 @@ TYPEDEF int ssize_t; TYPEDEF int ptrdiff_t; TYPEDEF __builtin_va_list va_list; +TYPEDEF __builtin_va_list __isoc_va_list; #ifndef __cplusplus TYPEDEF int wchar_t; diff --git a/arch/powerpc/bits/alltypes.h.sh b/arch/powerpc/bits/alltypes.h.sh index 5fe05e27d1b1494913d118b91c231dd1bd9e80c8..77d335bb4da244e28a5fc22f70fbb0e5c590815a 100755 --- a/arch/powerpc/bits/alltypes.h.sh +++ b/arch/powerpc/bits/alltypes.h.sh @@ -21,6 +21,7 @@ TYPEDEF int ssize_t; TYPEDEF int ptrdiff_t; TYPEDEF __builtin_va_list va_list; +TYPEDEF __builtin_va_list __isoc_va_list; #ifndef __cplusplus TYPEDEF long wchar_t; diff --git a/arch/x86_64/bits/alltypes.h.sh b/arch/x86_64/bits/alltypes.h.sh index a6c90327836af6a326d3dc57e4bbb08a4350a0c5..d3550f5654dd3d740efa6ef4582f9356987b93a9 100755 --- a/arch/x86_64/bits/alltypes.h.sh +++ b/arch/x86_64/bits/alltypes.h.sh @@ -20,6 +20,7 @@ TYPEDEF unsigned long size_t; TYPEDEF long ssize_t; TYPEDEF long ptrdiff_t; TYPEDEF __builtin_va_list va_list; +TYPEDEF __builtin_va_list __isoc_va_list; #ifndef __cplusplus TYPEDEF int wchar_t; diff --git a/include/stdio.h b/include/stdio.h index f64880173d0effbfbadf5f854d80364c3a3ebd33..fe7ff51d4b524fe6dbacc2051019d4cc18e6648d 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -8,7 +8,7 @@ extern "C" { #include #define __NEED_FILE -#define __NEED_va_list +#define __NEED___isoc_va_list #define __NEED_size_t #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ @@ -16,6 +16,7 @@ extern "C" { || defined(_BSD_SOURCE) #define __NEED_ssize_t #define __NEED_off_t +#define __NEED_va_list #endif #include @@ -99,17 +100,17 @@ int fprintf(FILE *__restrict, const char *__restrict, ...); int sprintf(char *__restrict, const char *__restrict, ...); int snprintf(char *__restrict, size_t, const char *__restrict, ...); -int vprintf(const char *__restrict, va_list); -int vfprintf(FILE *__restrict, const char *__restrict, va_list); -int vsprintf(char *__restrict, const char *__restrict, va_list); -int vsnprintf(char *__restrict, size_t, const char *__restrict, va_list); +int vprintf(const char *__restrict, __isoc_va_list); +int vfprintf(FILE *__restrict, const char *__restrict, __isoc_va_list); +int vsprintf(char *__restrict, const char *__restrict, __isoc_va_list); +int vsnprintf(char *__restrict, size_t, const char *__restrict, __isoc_va_list); int scanf(const char *__restrict, ...); int fscanf(FILE *__restrict, const char *__restrict, ...); int sscanf(const char *__restrict, const char *__restrict, ...); -int vscanf(const char *__restrict, va_list); -int vfscanf(FILE *__restrict, const char *__restrict, va_list); -int vsscanf(const char *__restrict, const char *__restrict, va_list); +int vscanf(const char *__restrict, __isoc_va_list); +int vfscanf(FILE *__restrict, const char *__restrict, __isoc_va_list); +int vsscanf(const char *__restrict, const char *__restrict, __isoc_va_list); void perror(const char *); @@ -131,7 +132,7 @@ int fileno(FILE *); int fseeko(FILE *, off_t, int); off_t ftello(FILE *); int dprintf(int, const char *__restrict, ...); -int vdprintf(int, const char *__restrict, va_list); +int vdprintf(int, const char *__restrict, __isoc_va_list); void flockfile(FILE *); int ftrylockfile(FILE *); void funlockfile(FILE *); @@ -171,7 +172,7 @@ int getw(FILE *); int putw(int, FILE *); char *fgetln(FILE *, size_t *); int asprintf(char **, const char *, ...); -int vasprintf(char **, const char *, va_list); +int vasprintf(char **, const char *, __isoc_va_list); #endif #ifdef _GNU_SOURCE diff --git a/include/wchar.h b/include/wchar.h index d8738818c77ffe1e0672ffe9bf49535e63bae06a..0f1f6d264e997f12ff87566aa76e390a42659f4c 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -8,7 +8,7 @@ extern "C" { #include #define __NEED_FILE -#define __NEED_va_list +#define __NEED___isoc_va_list #define __NEED_size_t #define __NEED_wchar_t #define __NEED_wint_t @@ -16,6 +16,7 @@ extern "C" { #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) #define __NEED_locale_t +#define __NEED_va_list #endif #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) @@ -105,17 +106,17 @@ int wprintf (const wchar_t *__restrict, ...); int fwprintf (FILE *__restrict, const wchar_t *__restrict, ...); int swprintf (wchar_t *__restrict, size_t, const wchar_t *__restrict, ...); -int vwprintf (const wchar_t *__restrict, va_list); -int vfwprintf (FILE *__restrict, const wchar_t *__restrict, va_list); -int vswprintf (wchar_t *__restrict, size_t, const wchar_t *__restrict, va_list); +int vwprintf (const wchar_t *__restrict, __isoc_va_list); +int vfwprintf (FILE *__restrict, const wchar_t *__restrict, __isoc_va_list); +int vswprintf (wchar_t *__restrict, size_t, const wchar_t *__restrict, __isoc_va_list); int wscanf (const wchar_t *__restrict, ...); int fwscanf (FILE *__restrict, const wchar_t *__restrict, ...); int swscanf (const wchar_t *__restrict, const wchar_t *__restrict, ...); -int vwscanf (const wchar_t *__restrict, va_list); -int vfwscanf (FILE *__restrict, const wchar_t *__restrict, va_list); -int vswscanf (const wchar_t *__restrict, const wchar_t *__restrict, va_list); +int vwscanf (const wchar_t *__restrict, __isoc_va_list); +int vfwscanf (FILE *__restrict, const wchar_t *__restrict, __isoc_va_list); +int vswscanf (const wchar_t *__restrict, const wchar_t *__restrict, __isoc_va_list); wint_t fgetwc (FILE *); wint_t getwc (FILE *);