*** empty log message ***
authorRichard Stallman <rms@gnu.org>
Mon, 1 Jun 1992 19:08:29 +0000 (19:08 +0000)
committerRichard Stallman <rms@gnu.org>
Mon, 1 Jun 1992 19:08:29 +0000 (19:08 +0000)
From-SVN: r1134

gcc/ginclude/stdarg.h
gcc/ginclude/va-sparc.h

index bb81825d71a7e4864c1b6bffa6e1ed5c623e6077..c91736416ff676c79d4f81ea23fd6130e8e04544 100644 (file)
 #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_ */
 
index 78a7dfa348625ba709df077c4c698aaabef288ee..cc423740a500c4d2c389166f6adf8ca9e05f6241 100644 (file)
@@ -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.  */