feature macro in time.h

Craig Howland howland@LGSInnovations.com
Thu Jan 16 18:15:00 GMT 2014

On 01/11/2014 08:38 PM, Joel Sherrill wrote:
> Hi
> Similar issue around tzname and tzset(). newlib has them
> as strict ansi and glibc allows them for POSIX.
> What should these be?
They are both POSIX "CX", and have been in since the beginning, so they should 
be (following the same convention agreed to in the "feature macros in stdlib.h" 
#if __POSIX_VISIBLE /* (all POSIX versions) */
(no version check needed)

More information about the Newlib mailing list