Skip to content

Commit

Permalink
pythongh-120326: Include <intrin.h> on Windows with Free Threading (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
Eclips4 authored and estyxx committed Jul 17, 2024
1 parent 1f09cb7 commit c41f116
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Include/Python.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
On Windows, fix build error when ``--disable-gil`` and ``--experimental-jit``
options are combined.

0 comments on commit c41f116

Please sign in to comment.