--HG--
branch : default-branch
#ifndef _STDARG_H
#define _STDARG_H
+#if defined(__PCC__)
+
+/* This only works on pcc architectures. */
+
+typedef __builtin_va_list va_list;
+#define va_start(v, l) __builtin_va_start(v, l)
+#define va_end(v) __builtin_va_end(v)
+#define va_arg(v, l) __builtin_va_arg(v, l)
+
+#else
+
+/* ...and this only works on EM architectures. */
+
typedef char* va_list;
#define __vasz(x) ((sizeof(x)+sizeof(int)-1) & ~(sizeof(int) -1))
#define va_end(ap)
#endif
+
+#endif