[PATCH v3 01/24] Feature test macros overhaul: sys/features.h

Craig Howland howland@LGSInnovations.com
Fri Mar 18 16:44:00 GMT 2016

On 03/17/2016 05:22 PM, Yaakov Selkowitz wrote:
> On 2016-03-17 11:09, Craig Howland wrote:
>> Is it a Newlib invention?
> Of course not, these are all based on glibc feature test macros. Although I 
> did consider adding a _NEWLIB_SOURCE for newlib-specific symbols, but adding 
> support for _DEFAULT_SOURCE made that moot.
> Hmm, now that you mention it, maybe we should at least have an internal 
> __NEWLIB_VISIBLE triggered by _DEFAULT_SOURCE (along the lines of BSD and 
> SVID) instead of using __MISC_VISIBLE, so that newlib-specific functions are 
> better marked.  Thoughts?
I realize that this specific patch is closed out now, but to address your 
question:  yes, this sounds like a good idea (for possible future implementation).

More information about the Newlib mailing list