Skip to content

Commit

Permalink
pythongh-110481: Fix build bot for free-threaded mode
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Oct 30, 2023
1 parent 8eaa206 commit 8ef44ef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Include/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ typedef struct {
PyAPI_FUNC(int) Py_Is(PyObject *x, PyObject *y);
#define Py_Is(x, y) ((x) == (y))

#ifndef Py_LIMITED_API
#if defined(Py_NOGIL) && !defined(Py_LIMITED_API)
static inline uintptr_t
_Py_ThreadId(void)
{
Expand Down Expand Up @@ -259,9 +259,7 @@ _Py_ThreadId(void)
#endif
return tid;
}
#endif

#if defined(Py_NOGIL) && !defined(Py_LIMITED_API)
static inline Py_ALWAYS_INLINE int
_Py_IsOwnedByCurrentThread(PyObject *ob)
{
Expand Down

0 comments on commit 8ef44ef

Please sign in to comment.