https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=10a30e7a258f112c1ada37b12cee924c8575c8d2
commit 10a30e7a258f112c1ada37b12cee924c8575c8d2 Author: Corinna Vinschen <[email protected]> Date: Wed Jul 27 14:00:30 2016 +0200 Remove redundant macro and function called `__getreent' Just rely on the inline version in include/cygwin/config.h Signed-off-by: Corinna Vinschen <[email protected]> Diff: --- winsup/cygwin/cygtls.h | 2 -- winsup/cygwin/thread.cc | 7 ------- 2 files changed, 9 deletions(-) diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h index 2a9f8f3..39dba13 100644 --- a/winsup/cygwin/cygtls.h +++ b/winsup/cygwin/cygtls.h @@ -436,6 +436,4 @@ public: _cygtls::call_signal_handler. */ ~wait_signal_arrived () { _my_tls.unwait_signal_arrived (); } }; - -#define __getreent() (&_my_tls.local_clib) /*gentls_offsets*/ diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index 4414785..d9271fc 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -80,13 +80,6 @@ pthread_mutex::no_owner() return res; } -#undef __getreent -extern "C" struct _reent * -__getreent () -{ - return &_my_tls.local_clib; -} - extern "C" void __cygwin_lock_init (_LOCK_T *lock) {
