File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 45
45
# endif
46
46
#endif
47
47
48
- // gh-111506: The free-threaded build is not compatible with the limited API
49
- // or the stable ABI.
50
- #if defined(Py_LIMITED_API ) && defined(Py_GIL_DISABLED )
51
- # error "The limited API is not currently supported in the free-threaded build"
52
- #endif
48
+ #if defined(Py_GIL_DISABLED )
49
+ # if defined(Py_LIMITED_API ) && !defined(_Py_OPAQUE_PYOBJECT )
50
+ # error "Py_LIMITED_API is not currently supported in the free-threaded build"
51
+ # endif
53
52
54
- #if defined( Py_GIL_DISABLED ) && defined(_MSC_VER )
55
- # include <intrin.h> // __readgsqword()
56
- #endif
53
+ # if defined(_MSC_VER )
54
+ # include <intrin.h> // __readgsqword()
55
+ # endif
57
56
58
- #if defined(Py_GIL_DISABLED ) && defined(__MINGW32__ )
59
- # include <intrin.h> // __readgsqword()
60
- #endif
57
+ # if defined(__MINGW32__ )
58
+ # include <intrin.h> // __readgsqword()
59
+ # endif
60
+ #endif // Py_GIL_DISABLED
61
61
62
62
// Include Python header files
63
63
#include "pyport.h"
You can’t perform that action at this time.
0 commit comments