diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-07-25 11:47:36 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-08-15 10:56:58 +0200 |
commit | 7156bf842e37fc07009d012c35309c5700f9f7cd (patch) | |
tree | 1aacfc2f6bc4468bc19f8caa066764864a60b23e /newlib/libc/include/time.h | |
parent | 91ebe04042de36aba91cbf22711553a5591c4a5f (diff) | |
download | cygnal-7156bf842e37fc07009d012c35309c5700f9f7cd.tar.gz cygnal-7156bf842e37fc07009d012c35309c5700f9f7cd.tar.bz2 cygnal-7156bf842e37fc07009d012c35309c5700f9f7cd.zip |
Add sys/_locale.h header and fix up headers
Signed-off by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/include/time.h')
-rw-r--r-- | newlib/libc/include/time.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h index 698ad6113..47ab578bc 100644 --- a/newlib/libc/include/time.h +++ b/newlib/libc/include/time.h @@ -28,6 +28,10 @@ #include <sys/types.h> #include <sys/timespec.h> +#if __POSIX_VISIBLE >= 200809 +#include <sys/_locale.h> +#endif + _BEGIN_STD_C struct tm @@ -63,6 +67,12 @@ size_t _EXFUN(strftime, (char *__restrict _s, size_t _maxsize, const char *__restrict _fmt, const struct tm *__restrict _t)); +#if __POSIX_VISIBLE >= 200809 +extern size_t strftime_l (char *__restrict _s, size_t _maxsize, + const char *__restrict _fmt, + const struct tm *__restrict _t, locale_t _l); +#endif + char *_EXFUN(asctime_r, (const struct tm *__restrict, char *__restrict)); char *_EXFUN(ctime_r, (const time_t *, char *)); |