diff options
author | Kirill Podoprigora <kirill.bast9@mail.ru> | 2024-06-11 17:50:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 17:50:21 (GMT) |
commit | 939c201e00943c6dc2d515185168c30606ae522c (patch) | |
tree | 2ec509fa309609adba57bdb9fdb8666f2c8514ba /Include/Python.h | |
parent | 86a8a1c57a386fb3330bee0fa44fc3fd6c3042a3 (diff) | |
download | cpython-939c201e00943c6dc2d515185168c30606ae522c.zip cpython-939c201e00943c6dc2d515185168c30606ae522c.tar.gz cpython-939c201e00943c6dc2d515185168c30606ae522c.tar.bz2 |
gh-120326: Include <intrin.h> on Windows with Free Threading (#120329)
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 502c5ec..a1b33f6 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" |