summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-09-17 14:00:22 (GMT)
committerGuido van Rossum <guido@python.org>1998-09-17 14:00:22 (GMT)
commit1d2e9d19fe5025f62618cff5f95c9e405e0f2d10 (patch)
tree8db10eb6ec32ebef9216a0d71338db19241db27c /Include
parente0bdf99c0b2e39a9bb51c38ed24c9897132f1441 (diff)
downloadcpython-1d2e9d19fe5025f62618cff5f95c9e405e0f2d10.zip
cpython-1d2e9d19fe5025f62618cff5f95c9e405e0f2d10.tar.gz
cpython-1d2e9d19fe5025f62618cff5f95c9e405e0f2d10.tar.bz2
Duplicate the decls for PySys_WriteStd{out,err} here so the VC++
compiler doesn't grumble. Greg Stein's suggestion.
Diffstat (limited to 'Include')
-rw-r--r--Include/pgenheaders.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/pgenheaders.h b/Include/pgenheaders.h
index 6b49782..ecfa89b 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