diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1993-01-26 15:26:23 -0800 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1993-01-26 15:26:23 -0800 |
commit | d58913603fcb8c9c2ccf2e4569b0115a967e46b0 (patch) | |
tree | 912949124491722c526b974054b606c7b806e3c2 | |
parent | 9116497e24cabce51f2070bf8e754e63263c3965 (diff) | |
download | gcc-d58913603fcb8c9c2ccf2e4569b0115a967e46b0.zip gcc-d58913603fcb8c9c2ccf2e4569b0115a967e46b0.tar.gz gcc-d58913603fcb8c9c2ccf2e4569b0115a967e46b0.tar.bz2 |
(stdio.h): Change _VA_LIST_ to __gnuc_va_list for 386BSD.
From-SVN: r3354
-rwxr-xr-x | gcc/fixincludes | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes index 70a8d54..6898fc3 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -846,9 +846,12 @@ if [ -r ${LIB}/$file ]; then (echo "#define __need___va_list" echo "#include <stdarg.h>") > ${LIB}/${file}.sed # Use __gnuc_va_list in arg types in place of va_list. + # On 386BSD use __gnuc_va_list instead of _VA_LIST_. We're hoping the + # trailing parentheses and semicolon save all other systems from this. # Define __va_list__ (something harmless and unused) instead of va_list. # Don't claim to have defined va_list. sed -e 's@ va_list @ __gnuc_va_list @' \ + -e 's@ _VA_LIST_));@ __gnuc_va_list));@' \ -e 's@ va_list@ __va_list__@' \ -e 's@\*va_list@*__va_list__@' \ -e 's@VA_LIST@DUMMY_VA_LIST@' \ |