diff options
author | Marc-André Lemburg <mal@egenix.com> | 2001-07-31 18:05:33 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2001-07-31 18:05:33 (GMT) |
commit | 03d1b1814b367baf8a52389b5a7d7805dba1f68a (patch) | |
tree | 81892ac6a1c4fd799e9768fe2c24b70a8a360a89 /Include | |
parent | 77707673f4a623580a3a1cbc494129511004ec2b (diff) | |
download | cpython-03d1b1814b367baf8a52389b5a7d7805dba1f68a.zip cpython-03d1b1814b367baf8a52389b5a7d7805dba1f68a.tar.gz cpython-03d1b1814b367baf8a52389b5a7d7805dba1f68a.tar.bz2 |
Enable PyOS_snprintf() et al. during alpha phase of 2.2.0 and
add another use case to the socketmodule.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pyerrors.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h index 3b2bfbc..1ee4fe2 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -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, ...); |