Author vstinner
Recipients matrixise, palotasb-conti, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2020-06-15.16:38:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592239124.75.0.122187436826.issue36020@roundup.psfhosted.org>
In-reply-to
Content
> On Python 3.8 and older, the workaround is to manually undefine the macros: (...)

pybind11 implemented a different workaround:
---
/* Don't let Python.h #define (v)snprintf as macro because they are implemented
   properly in Visual Studio since 2015. */
#if defined(_MSC_VER) && _MSC_VER >= 1900
#  define HAVE_SNPRINTF 1
#endif
---
https://github.com/pybind/pybind11/pull/2238/files
History
Date User Action Args
2020-06-15 16:38:44vstinnersetrecipients: + vstinner, paul.moore, tim.golden, zach.ware, steve.dower, matrixise, palotasb-conti
2020-06-15 16:38:44vstinnersetmessageid: <1592239124.75.0.122187436826.issue36020@roundup.psfhosted.org>
2020-06-15 16:38:44vstinnerlinkissue36020 messages
2020-06-15 16:38:44vstinnercreate