From a3e2f3c2b15053a2f9faccc62947b82f2219599f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 25 Jun 2013 22:26:20 -0400 Subject: respect iso c namespace in stdio.h and wchar.h regarding va_list despite declaring functions that take arguments of type va_list, these headers are not permitted by the c standard to expose the definition of va_list, so an alias for the type must be used. the name __isoc_va_list was chosen to convey that the purpose of this alternate name is for iso c conformance, and to avoid the multitude of names which gcc mangles with its hideous "fixincludes" monstrosity, leading to serious header breakage if these "fixes" are run. --- arch/x86_64/bits/alltypes.h.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/x86_64') diff --git a/arch/x86_64/bits/alltypes.h.sh b/arch/x86_64/bits/alltypes.h.sh index a6c90327..d3550f56 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; -- cgit v1.2.1