This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: feature macro in time.h


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]