summaryrefslogtreecommitdiff
path: root/gcc/ginclude/varargs.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ginclude/varargs.h')
-rw-r--r--gcc/ginclude/varargs.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ginclude/varargs.h b/gcc/ginclude/varargs.h
index 410d06aac69..4259b9f55d8 100644
--- a/gcc/ginclude/varargs.h
+++ b/gcc/ginclude/varargs.h
@@ -96,7 +96,7 @@
#ifndef __GNUC_VA_LIST
#define __GNUC_VA_LIST
-#if defined(__svr4__) || defined(_AIX) || defined(_M_UNIX)
+#if defined(__svr4__) || defined(_AIX) || defined(_M_UNIX) || defined(__BEOS__)
typedef char *__gnuc_va_list;
#else
typedef void *__gnuc_va_list;
@@ -192,7 +192,10 @@ typedef __gnuc_va_list va_list;
#ifndef _VA_LIST
/* The macro _VA_LIST_T_H is used in the Bull dpx2 */
#ifndef _VA_LIST_T_H
+/* The macro __va_list__ is used in BeOS */
+#ifndef __va_list__
typedef __gnuc_va_list va_list;
+#endif /* not __va_list__ */
#endif /* not _VA_LIST_T_H */
#endif /* not _VA_LIST */
#endif /* not _VA_LIST_DEFINED */
@@ -208,6 +211,9 @@ typedef __gnuc_va_list va_list;
#ifndef _VA_LIST_T_H
#define _VA_LIST_T_H
#endif
+#ifndef __va_list__ /* BeOS */
+#define __va_list__
+#endif
#endif /* not _VA_LIST_, except on certain systems */