Skip to content

Commit f5394c2

Browse files
gh-140544: fix build for including pycore_pystate.h when HAVE_THREAD_LOCAL is not defined (#140623)
1 parent 364ae60 commit f5394c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Include/internal/pycore_pystate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ _Py_ThreadCanHandleSignals(PyInterpreterState *interp)
8989
/* Variable and static inline functions for in-line access to current thread
9090
and interpreter state */
9191

92-
#if defined(HAVE_THREAD_LOCAL) && !defined(Py_BUILD_CORE_MODULE)
92+
#if !defined(Py_BUILD_CORE_MODULE)
9393
extern _Py_thread_local PyThreadState *_Py_tss_tstate;
9494
extern _Py_thread_local PyInterpreterState *_Py_tss_interp;
9595
#endif
@@ -115,7 +115,7 @@ PyAPI_FUNC(PyThreadState *) _PyThreadState_GetCurrent(void);
115115
static inline PyThreadState*
116116
_PyThreadState_GET(void)
117117
{
118-
#if defined(HAVE_THREAD_LOCAL) && !defined(Py_BUILD_CORE_MODULE)
118+
#if !defined(Py_BUILD_CORE_MODULE)
119119
return _Py_tss_tstate;
120120
#else
121121
return _PyThreadState_GetCurrent();

0 commit comments

Comments
 (0)