public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Sebastian Huber <sh@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Optional struct _reent::_new::_reent::_unused_rand Date: Wed, 18 May 2022 05:58:14 +0000 (GMT) [thread overview] Message-ID: <20220518055814.986A13857401@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=84d8b9d1b3132f0db0f966d2285b2905e815f2d4 commit 84d8b9d1b3132f0db0f966d2285b2905e815f2d4 Author: Sebastian Huber <sebastian.huber@embedded-brains.de> Date: Fri May 13 15:21:34 2022 +0200 Optional struct _reent::_new::_reent::_unused_rand Rename struct _reent member _unused_rand to _reserved_2. Provide it only if _REENT_BACKWARD_BINARY_COMPAT is defined. Diff: --- newlib/libc/include/sys/reent.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h index f526f3568..6d6796ed3 100644 --- a/newlib/libc/include/sys/reent.h +++ b/newlib/libc/include/sys/reent.h @@ -345,9 +345,11 @@ struct _rand48 { #ifdef _REENT_BACKWARD_BINARY_COMPAT #define _REENT_INIT_RESERVED_0 0, #define _REENT_INIT_RESERVED_1 0, +#define _REENT_INIT_RESERVED_2 0, #else #define _REENT_INIT_RESERVED_0 /* Nothing to initialize */ #define _REENT_INIT_RESERVED_1 /* Nothing to initialize */ +#define _REENT_INIT_RESERVED_2 /* Nothing to initialize */ #endif /* @@ -661,7 +663,9 @@ struct _reent { struct { - unsigned int _unused_rand; +#ifdef _REENT_BACKWARD_BINARY_COMPAT + unsigned int _reserved_2; +#endif char * _strtok_last; char _asctime_buf[_REENT_ASCTIME_SIZE]; struct __tm _localtime_buf; @@ -741,7 +745,7 @@ struct _reent _NULL, \ { \ { \ - 0, \ + _REENT_INIT_RESERVED_2 \ _NULL, \ "", \ {0, 0, 0, 0, 0, 0, 0, 0, 0}, \
reply other threads:[~2022-05-18 5:58 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220518055814.986A13857401@sourceware.org \ --to=sh@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).