Skip to content

Commit 8ef44ef

Browse files
committed
pythongh-110481: Fix build bot for free-threaded mode
1 parent 8eaa206 commit 8ef44ef

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Include/object.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ typedef struct {
231231
PyAPI_FUNC(int) Py_Is(PyObject *x, PyObject *y);
232232
#define Py_Is(x, y) ((x) == (y))
233233

234-
#ifndef Py_LIMITED_API
234+
#if defined(Py_NOGIL) && !defined(Py_LIMITED_API)
235235
static inline uintptr_t
236236
_Py_ThreadId(void)
237237
{
@@ -259,9 +259,7 @@ _Py_ThreadId(void)
259259
#endif
260260
return tid;
261261
}
262-
#endif
263262

264-
#if defined(Py_NOGIL) && !defined(Py_LIMITED_API)
265263
static inline Py_ALWAYS_INLINE int
266264
_Py_IsOwnedByCurrentThread(PyObject *ob)
267265
{

0 commit comments

Comments
 (0)