Skip to content

Commit bf6a9b1

Browse files
committed
Add
PySys_WriteStdout(format, ...) PySys_WriteStderr(format, ...)
1 parent 597ac20 commit bf6a9b1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Include/sysmodule.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ FILE *PySys_GetFile Py_PROTO((char *, FILE *));
4343
void PySys_SetArgv Py_PROTO((int, char **));
4444
void PySys_SetPath Py_PROTO((char *));
4545

46+
#ifdef HAVE_STDARG_PROTOTYPES
47+
void PySys_WriteStdout(const char *format, ...);
48+
void PySys_WriteStderr(const char *format, ...);
49+
#else
50+
/* Better to have no prototypes at all for varargs functions in this case */
51+
void PySys_WriteStdout();
52+
void PySys_WriteStderr();
53+
#endif
54+
4655
extern DL_IMPORT(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
4756
extern DL_IMPORT(int) _PySys_CheckInterval;
4857

0 commit comments

Comments
 (0)