File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 )
9393extern _Py_thread_local PyThreadState * _Py_tss_tstate ;
9494extern _Py_thread_local PyInterpreterState * _Py_tss_interp ;
9595#endif
@@ -115,7 +115,7 @@ PyAPI_FUNC(PyThreadState *) _PyThreadState_GetCurrent(void);
115115static 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 ;
You can’t perform that action at this time.
0 commit comments