From: Richard Stallman Date: Mon, 1 Jun 1992 19:08:29 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=69d6c854c0990cdf355bb7265002795d7a5abcd7;p=gcc.git *** empty log message *** From-SVN: r1134 --- diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h index bb81825d71a..c91736416ff 100644 --- a/gcc/ginclude/stdarg.h +++ b/gcc/ginclude/stdarg.h @@ -39,7 +39,11 @@ #ifndef _VA_LIST #define _VA_LIST_ #define _VA_LIST +#ifndef __svr4__ typedef char *va_list; +#else +typedef void *va_list; +#endif #endif /* _VA_LIST */ #endif /* _VA_LIST_ */ diff --git a/gcc/ginclude/va-sparc.h b/gcc/ginclude/va-sparc.h index 78a7dfa3486..cc423740a50 100644 --- a/gcc/ginclude/va-sparc.h +++ b/gcc/ginclude/va-sparc.h @@ -3,9 +3,15 @@ /* Make this a macro rather than a typedef, so we can undef any other defn. */ #define va_list __va___list +#ifndef __svr4__ /* This has to be a char * to be compatible with Sun. i.e., we have to pass a `va_list' to vsprintf. */ typedef char * __va___list; +#else +/* This has to be a void * to be compatible with Sun svr4. + i.e., we have to pass a `va_list' to vsprintf. */ +typedef void * __va___list; +#endif /* In GCC version 2, we want an ellipsis at the end of the declaration of the argument list. GCC version 1 can't parse it. */