[PATCH] Automated the generation of the __NEWLIB__, __NEWLIB_MINOR__ and __NEWLIB_PATCHLEVEL__ macros.

Sebastian Huber sebastian.huber@embedded-brains.de
Sun Jan 31 15:55:00 GMT 2016



----- Am 29. Jan 2016 um 16:11 schrieb Jeff Johnston jjohnstn@redhat.com:

> ----- Original Message -----
>> On Thu, Jan 28, 2016 at 08:27:06AM -0500, Jeff Johnston wrote:
[...]
>> 2. We generate a newlib_version.h at the same level as newlib.h
>> is, and include newlib_version.h in both newlib.h and
>> libc/include/sys/features.h.
>> 
> 
> This idea could be modified to do something like glibc does for bringing in
> particular macros
> from a header file (e.g. __need_size_t to bring in just size_t from stddef.h).
> Thus, you
> set __need_version_macros and include newlib.h in <sys/features.h> and modify
> newlib.h.in
> accordingly.  This restores the current behaviour.  What do you think?
[...]

Could we please not use magic defines to change the behaviour of headers.  This makes it hard to figure out dependencies.  Its much easier to trace simple #include directives.



More information about the Newlib mailing list