diff options
author | Matt Joyce <matthew.joyce@embedded-brains.de> | 2022-02-03 10:18:53 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-07-13 06:55:46 +0200 |
commit | f89ce35d83c705cfb9ae0564d1999f39c4e8fa83 (patch) | |
tree | 02459cc341e55a029eac95b73aa904fcce368eb0 /winsup/cygwin/dcrt0.cc | |
parent | 50f078b48cea6664975b87cbacf2a7dfacb42fba (diff) | |
download | newlib-f89ce35d83c705cfb9ae0564d1999f39c4e8fa83.zip newlib-f89ce35d83c705cfb9ae0564d1999f39c4e8fa83.tar.gz newlib-f89ce35d83c705cfb9ae0564d1999f39c4e8fa83.tar.bz2 |
Add _REENT_CLEANUP(ptr)
Add a _REENT_CLEANUP() macro to encapsulate access to the
__cleanup member of struct reent. This will help to replace the
struct member with a thread-local storage object in a follow up
patch.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 9cbb890..897a2fb 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -800,7 +800,7 @@ main_thread_sinit () read or written in the first stdio function call in the main thread. To fix this issue we set __cleanup to _cygtls::cleanup_early here. */ - _REENT->__cleanup = _cygtls::cleanup_early; + _REENT_CLEANUP(_REENT) = _cygtls::cleanup_early; } /* Take over from libc's crt0.o and start the application. Note the |