Feature test macros overhaul: time.h

Throughout, replace __STRICT_ANSI__ with the proper internal macros.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
Yaakov Selkowitz
2016-03-14 17:23:09 -05:00
parent 6fe6a822ee
commit 43e5ee83fe
2 changed files with 17 additions and 5 deletions

View File

@ -24,17 +24,18 @@ time_t __cdecl timegm (struct tm *);
#define TIMER_RELTIME 0 /* For compatibility with HP/UX, Solaris, others? */
#ifndef __STRICT_ANSI__
#if __SVID_VISIBLE
extern int stime (const time_t *);
#endif
#if __SVID_VISIBLE || __XSI_VISIBLE
extern int daylight __asm__ (_SYMSTR (_daylight));
#ifndef __timezonefunc__
extern long timezone __asm__ (_SYMSTR (_timezone));
#endif
#endif /*__STRICT_ANSI__*/
#endif /* __SVID_VISIBLE || __XSI_VISIBLE */
#ifdef __cplusplus
}