aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-06-01 19:08:29 +0000
committerRichard Stallman <rms@gnu.org>1992-06-01 19:08:29 +0000
commit69d6c854c0990cdf355bb7265002795d7a5abcd7 (patch)
treeb9bc0608aebbefddcdc6f8a72bc638018a3a737e /gcc
parentd64f5a781f50a7c7625e91d2304359907f768eaa (diff)
downloadgcc-69d6c854c0990cdf355bb7265002795d7a5abcd7.zip
gcc-69d6c854c0990cdf355bb7265002795d7a5abcd7.tar.gz
gcc-69d6c854c0990cdf355bb7265002795d7a5abcd7.tar.bz2
*** empty log message ***
From-SVN: r1134
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ginclude/stdarg.h4
-rw-r--r--gcc/ginclude/va-sparc.h6
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h
index bb81825..c917364 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 78a7dfa..cc42374 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. */