diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-12 15:39:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-12 15:39:54 (GMT) |
commit | 8e5caa72c2556c4ba1fb90dfc6593bb848a6c116 (patch) | |
tree | 0aa2ab4522f09dadd3b540694398364058a02412 /Include | |
parent | f0788cb41906407f567cc84d40bb2e9e80fb6a1b (diff) | |
download | cpython-8e5caa72c2556c4ba1fb90dfc6593bb848a6c116.zip cpython-8e5caa72c2556c4ba1fb90dfc6593bb848a6c116.tar.gz cpython-8e5caa72c2556c4ba1fb90dfc6593bb848a6c116.tar.bz2 |
[3.13] gh-120326: Include <intrin.h> on Windows with Free Threading (GH-120329) (#120414)
gh-120326: Include <intrin.h> on Windows with Free Threading (GH-120329)
(cherry picked from commit 939c201e00943c6dc2d515185168c30606ae522c)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Diffstat (limited to 'Include')
-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 e05901b..92751bb 100644 --- a/Include/Python.h +++ b/Include/Python.h @@ -51,6 +51,10 @@ # error "The limited API is not currently supported in the free-threaded build" #endif +#if defined(Py_GIL_DISABLED) && defined(_MSC_VER) +# include <intrin.h> // __readgsqword() +#endif + // Include Python header files #include "pyport.h" #include "pymacro.h" |