[patch] Adjust _REENT_SMALL to be binary compatible with normal layout.
Thu Jun 3 14:13:00 GMT 2010
On Jun 2 07:33, Kazu Hirata wrote:
> Attached is a patch to adjust _REENT_SMALL to be binary compatible
> with normal layout.
> Specifically, this patch makes the first few members identical between
> the _REENT_SMALL and !_REENT_SMALL versions of _reent. This way,
> source code compiled with the _REENT_SMALL headers can be linked
> against the !_REENT_SMALL version of libc, and vice versa. Note that
> members like _stdin, _stdout, and _stderr "leak" into the users'
> object code because stdin, for example, is expanded to:
> Tested on arm-none-eabi. OK to apply?
> Kazu Hirata
> 2010-06-02 Paul Brook <firstname.lastname@example.org>
> * libc/include/sys/reent.h (_reent): Adjust _REENT_SMALL to be
> binary compatible with normal layout.
> (_REENT_INIT): Adjust to match struct layout.
Looks good to me. Please apply.
Cygwin Project Co-Leader
More information about the Newlib