]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Duplicate the decls for PySys_WriteStd{out,err} here so the VC++
authorGuido van Rossum <guido@python.org>
Thu, 17 Sep 1998 14:00:22 +0000 (14:00 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 17 Sep 1998 14:00:22 +0000 (14:00 +0000)
compiler doesn't grumble.  Greg Stein's suggestion.

Include/pgenheaders.h

index 6b497822d7aad8a1f69119539cd0865a7176e345..ecfa89b8cdfa2d1ca8344d220db5fd8980893f8d 100644 (file)
@@ -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