mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
Enable PyOS_snprintf() et al. during alpha phase of 2.2.0 and
add another use case to the socketmodule.
This commit is contained in:
parent
77707673f4
commit
03d1b1814b
2 changed files with 9 additions and 10 deletions
|
@ -115,6 +115,13 @@ extern DL_IMPORT(PyObject *) PyErr_ProgramText(char *, int);
|
|||
# define snprintf _snprintf
|
||||
# define vsnprintf _vsnprintf
|
||||
#endif
|
||||
|
||||
/* Always enable the fallback solution during the 2.2.0 alpha cycle
|
||||
for enhanced testing */
|
||||
#if PY_VERSION_HEX < 0x020200B0
|
||||
# undef HAVE_SNPRINTF
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_SNPRINTF
|
||||
#include <stdarg.h>
|
||||
extern DL_IMPORT(int) PyOS_snprintf(char *str, size_t size, const char *format, ...);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue