This is the mail archive of the 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: [PATCH 1/2] Move kernel dependent parts of <sys/time.h>

On 07/04/16 17:56, Joel Sherrill wrote:

Does this address the warning in the RTEMS main_date.c command that popped up with the newlib guard changes?

No, this patch solves a completely different problem. The strptime() is declared in <time.h> via

char      *_EXFUN(strptime,     (const char *__restrict,
                 const char *__restrict,
                 struct tm *__restrict));

which uses

#if (_XOPEN_SOURCE - 0) >= 700
#define    __XSI_VISIBLE        700
#elif (_XOPEN_SOURCE - 0) >= 600
#define    __XSI_VISIBLE        600
#elif (_XOPEN_SOURCE - 0) >= 500
#define    __XSI_VISIBLE        500
#elif defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)
#define    __XSI_VISIBLE        4
#elif defined(_XOPEN_SOURCE)
#define    __XSI_VISIBLE        1
#define    __XSI_VISIBLE        0

I guess we need an

#include <time.h>

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  :
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]