Message371572
> 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 |
|
Date |
User |
Action |
Args |
2020-06-15 16:38:44 | vstinner | set | recipients:
+ vstinner, paul.moore, tim.golden, zach.ware, steve.dower, matrixise, palotasb-conti |
2020-06-15 16:38:44 | vstinner | set | messageid: <1592239124.75.0.122187436826.issue36020@roundup.psfhosted.org> |
2020-06-15 16:38:44 | vstinner | link | issue36020 messages |
2020-06-15 16:38:44 | vstinner | create | |
|