diff options
author | Matt Joyce <matthew.joyce@embedded-brains.de> | 2022-05-02 10:00:12 +0300 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-05-13 13:47:29 +0300 |
commit | 0a862d13193616811ce897e2bd50ca3003b47f84 (patch) | |
tree | 3dc9ac7c406d747d3aab58a7453373a2291d5dcc /newlib/libc/reent | |
parent | 8b96542ed18990c9300daa4faba89ce8227b4482 (diff) |
Remove __sglue member for one configuration
Remove __sglue member of struct reent when _REENT_GLOBAL_STDIO_STREAMS is
defined.
Diffstat (limited to 'newlib/libc/reent')
-rw-r--r-- | newlib/libc/reent/reent.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/reent/reent.c b/newlib/libc/reent/reent.c index 5a04fcf62..0bdd8aa62 100644 --- a/newlib/libc/reent/reent.c +++ b/newlib/libc/reent/reent.c @@ -27,6 +27,7 @@ int errno; #endif +#ifndef _REENT_GLOBAL_STDIO_STREAMS /* Interim cleanup code */ void @@ -39,6 +40,7 @@ cleanup_glue (struct _reent *ptr, _free_r (ptr, glue); } +#endif void _reclaim_reent (struct _reent *ptr) @@ -124,8 +126,10 @@ _reclaim_reent (struct _reent *ptr) before the program exits, and who wants to wait for that? */ ptr->__cleanup (ptr); +#ifndef _REENT_GLOBAL_STDIO_STREAMS if (ptr->__sglue._next) cleanup_glue (ptr, ptr->__sglue._next); +#endif } /* Malloc memory not reclaimed; no good way to return memory anyway. */ |