STINNER Victor <vstin...@python.org> added the comment:
> 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 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36020> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com