diff options
Diffstat (limited to 'include/time.h')
| -rw-r--r-- | include/time.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/time.h b/include/time.h index a9baa50ff1fd8..58409776ff18f 100644 --- a/include/time.h +++ b/include/time.h @@ -131,15 +131,18 @@ time_t mktime __P((struct tm *)); size_t strftime __P((char *, size_t, const char *, const struct tm *)); time_t time __P((time_t *)); +#ifdef _THREAD_SAFE +char *asctime_r __P((const struct tm *, char *)); +char *ctime_r __P((const time_t *, char *)); +struct tm *gmtime_r __P((const time_t *, struct tm *)); +struct tm *localtime_r __P((const time_t *, struct tm *)); +#endif + #ifndef _ANSI_SOURCE void tzset __P((void)); #endif /* not ANSI */ #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -char *asctime_r __P((const struct tm *, char *)); -char *ctime_r __P((const time_t *, char *)); -struct tm *gmtime_r __P((const time_t *, struct tm *)); -struct tm *localtime_r __P((const time_t *, struct tm *)); char *strptime __P((const char *, const char *, struct tm *)); char *timezone __P((int, int)); void tzsetwall __P((void)); |
