Skip to content

Commit 34a2688

Browse files
remove HAVE_THREAD_LOCAL
1 parent c82449d commit 34a2688

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Include/internal/pycore_pystate.h

Lines changed: 3 additions & 3 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();
@@ -209,7 +209,7 @@ static inline PyInterpreterState* _PyInterpreterState_GET(void) {
209209
PyThreadState *tstate = _PyThreadState_GET();
210210
_Py_EnsureTstateNotNULL(tstate);
211211
#endif
212-
#if defined(HAVE_THREAD_LOCAL) && !defined(Py_BUILD_CORE_MODULE)
212+
#if !defined(Py_BUILD_CORE_MODULE)
213213
return _Py_tss_interp;
214214
#else
215215
return _PyThreadState_GET()->interp;

0 commit comments

Comments
 (0)