From 1d2e9d19fe5025f62618cff5f95c9e405e0f2d10 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 17 Sep 1998 14:00:22 +0000 Subject: [PATCH] Duplicate the decls for PySys_WriteStd{out,err} here so the VC++ compiler doesn't grumble. Greg Stein's suggestion. --- Include/pgenheaders.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Include/pgenheaders.h b/Include/pgenheaders.h index 6b497822d7a..ecfa89b8cdf 100644 --- a/Include/pgenheaders.h +++ b/Include/pgenheaders.h @@ -61,6 +61,15 @@ PERFORMANCE OF THIS SOFTWARE. #include "pydebug.h" +#ifdef HAVE_STDARG_PROTOTYPES +void PySys_WriteStdout(const char *format, ...); +void PySys_WriteStderr(const char *format, ...); +#else +/* Better to have no prototypes at all for varargs functions in this case */ +void PySys_WriteStdout(); +void PySys_WriteStderr(); +#endif + #define addarc _Py_addarc #define addbit _Py_addbit #define adddfa _Py_adddfa