Author palotasb-conti
Recipients palotasb-conti, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-02-18.10:18:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550485106.18.0.506219958256.issue36020@roundup.psfhosted.org>
In-reply-to
Content
Abstract: pyerrors.h defines snprintf as a macro on MSVC even on versions of MSVC where this workaround causes bugs.

snprintf is defined as _snprintf in pyerrors.h, see: https://github.com/python/cpython/blob/ac28147e78c45a6217d348ce90ca5281d91f676f/Include/pyerrors.h#L326-L330

The conditions for this should exclude _MSC_VER >= 1900 where (std::)snprintf is correctly defined. Since this is not the case, subsequent user code that tries to use std::snprintf will fail with an err (_snprintf is not a member of namespace std).
History
Date User Action Args
2019-02-18 10:18:26palotasb-contisetrecipients: + palotasb-conti, paul.moore, tim.golden, zach.ware, steve.dower
2019-02-18 10:18:26palotasb-contisetmessageid: <1550485106.18.0.506219958256.issue36020@roundup.psfhosted.org>
2019-02-18 10:18:26palotasb-contilinkissue36020 messages
2019-02-18 10:18:25palotasb-conticreate