[issue35037] PYLONG_BITS_IN_DIGIT differs between MinGW and MSVC

Stefan Behnel report at bugs.python.org
Tue Oct 23 16:18:39 EDT 2018


Stefan Behnel <stefan_ml at behnel.de> added the comment:

The relevant macro seems to be "__MINGW64__". I have neither a Windows environment nor MinGW-64 for testing, but the logic should be the same as for the "_WIN64" macro, i.e.

#if defined(_WIN64) || defined(__MINGW64__)
#define MS_WIN64
#endif

And then there's probably also something to do to record the compiler version in the long CPython version string, etc. I also can't say if MinGW-64 sets the "MS_WIN32" macro. Having "MS_WIN64" without "MS_WIN32" might be unexpected for some code.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35037>
_______________________________________


More information about the Python-bugs-list mailing list