File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 23
23
* but still crash. We have that problem on all platforms though. It's just worse
24
24
* here because we have to keep copying the updated definitions.
25
25
*/
26
-
26
+ # include < Python.h >
27
27
#include " greenlet_cpython_compat.hpp"
28
28
29
- #if GREENLET_314
29
+ // This file is only included on 3.14+
30
+
31
+ extern " C" {
32
+
30
33
// pycore_code.h ----------------
31
34
#define _PyCode_CODE (CO ) _Py_RVALUE((_Py_CODEUNIT *)(CO)->co_code_adaptive)
32
35
// End pycore_code.h ----------
@@ -72,7 +75,7 @@ _PyFrame_GetBytecode(_PyInterpreterFrame *f)
72
75
#endif
73
76
}
74
77
75
- static inline bool _Py_NO_SANITIZE_THREAD
78
+ static inline bool // _Py_NO_SANITIZE_THREAD
76
79
_PyFrame_IsIncomplete (_PyInterpreterFrame *frame)
77
80
{
78
81
if (frame->owner >= FRAME_OWNED_BY_INTERPRETER) {
@@ -84,5 +87,5 @@ _PyFrame_IsIncomplete(_PyInterpreterFrame *frame)
84
87
}
85
88
// pycore_interpframe.h ----------
86
89
87
- # endif // GREENLET_314
88
- #endif
90
+ }
91
+ #endif // GREENLET_MSVC_COMPAT_HPP
You can’t perform that action at this time.
0 commit comments