This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: feature macro in time.h
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Date: Fri, 17 Jan 2014 08:48:12 +0100
- Subject: Re: feature macro in time.h
- Authentication-results: sourceware.org; auth=none
- References: <52D1F21D dot 8020901 at oarcorp dot com> <52D821A5 dot 7060605 at LGSInnovations dot com>
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.