summaryrefslogtreecommitdiffstats
path: root/Parser/pgenmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'Parser/pgenmain.c')
-rw-r--r--Parser/pgenmain.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/Parser/pgenmain.c b/Parser/pgenmain.c
index 9441e58..7292485 100644
--- a/Parser/pgenmain.c
+++ b/Parser/pgenmain.c
@@ -211,3 +211,30 @@ PyOS_Readline(prompt)
p[n-1] = '\n';
return realloc(p, n+1);
}
+
+#ifdef HAVE_STDARG_PROTOTYPES
+#include <stdarg.h>
+#else
+#include <varargs.h>
+#endif
+
+void
+#ifdef HAVE_STDARG_PROTOTYPES
+PySys_WriteStderr(const char *format, ...)
+#else
+PySys_WriteStderr(va_alist)
+ va_dcl
+#endif
+{
+ va_list va;
+
+#ifdef HAVE_STDARG_PROTOTYPES
+ va_start(va, format);
+#else
+ char *format;
+ va_start(va);
+ format = va_arg(va, char *);
+#endif
+ vfprintf(stderr, format, va);
+ va_end(va);
+}