feature macro in time.h

Sebastian Huber sebastian.huber@embedded-brains.de
Fri Jan 17 07:48:00 GMT 2014


On 2014-01-16 19:15, Craig Howland wrote:
> 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"
> thread):
> #if __POSIX_VISIBLE /* (all POSIX versions) */
> (no version check needed)
> Craig

Yes, this is exactly like in the FreeBSD sources:

http://svnweb.freebsd.org/base/head/include/time.h?revision=245428&view=markup

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the Newlib mailing list