diff options
author | Tony Roberts <tony@pyxll.com> | 2024-09-27 19:52:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-27 18:52:23 +0000 |
commit | 0881e2d3b1212d988733f1d3acca4011ce5e6280 (patch) | |
tree | 7afc9664bcb62f1ab54a43f59d7789bb4ef64dc1 /Include/Python.h | |
parent | 2e155536caf8a090c06d62dd92647abc62362463 (diff) | |
download | cpython-0881e2d3b1212d988733f1d3acca4011ce5e6280.tar.gz cpython-0881e2d3b1212d988733f1d3acca4011ce5e6280.zip |
gh-124609: Fix _Py_ThreadId for Windows builds using MinGW (#124663)
Diffstat (limited to 'Include/Python.h')
-rw-r--r-- | Include/Python.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h index 8fffa22df9d..e1abdd16f03 100644 --- a/Include/Python.h +++ b/Include/Python.h @@ -55,6 +55,10 @@ # include <intrin.h> // __readgsqword() #endif +#if defined(Py_GIL_DISABLED) && defined(__MINGW32__) +# include <intrin.h> // __readgsqword() +#endif + // Include Python header files #include "pyport.h" #include "pymacro.h" |