diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-05-08 14:58:11 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-05-08 14:58:11 +0000 |
commit | 12b830981ec7ce2f78c5f70d9227ae3294cba54d (patch) | |
tree | 96e73a4383935d4459a138dcd4caacaf6be7ae83 /winsup/cygwin/libc/strptime.cc | |
parent | 72d1a8a04aa8675f4d878f45c6ec69d45effcfd6 (diff) | |
download | cygnal-12b830981ec7ce2f78c5f70d9227ae3294cba54d.tar.gz cygnal-12b830981ec7ce2f78c5f70d9227ae3294cba54d.tar.bz2 cygnal-12b830981ec7ce2f78c5f70d9227ae3294cba54d.zip |
* include/sys/localedef.h: Remove.
* libc/strptime.cc: Define _TimeLocale and declare _CurrentTimeLocale
as well as _DefaultTimeLocale locally for Cygwin.
Diffstat (limited to 'winsup/cygwin/libc/strptime.cc')
-rw-r--r-- | winsup/cygwin/libc/strptime.cc | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/winsup/cygwin/libc/strptime.cc b/winsup/cygwin/libc/strptime.cc index d0a77a850..3bed5ea87 100644 --- a/winsup/cygwin/libc/strptime.cc +++ b/winsup/cygwin/libc/strptime.cc @@ -38,8 +38,8 @@ __RCSID("$NetBSD: strptime.c,v 1.28 2008/04/28 20:23:01 martin Exp $"); #include "winsup.h" #else #include "namespace.h" -#endif #include <sys/localedef.h> +#endif #include <ctype.h> #include <locale.h> #include <string.h> @@ -50,6 +50,23 @@ __RCSID("$NetBSD: strptime.c,v 1.28 2008/04/28 20:23:01 martin Exp $"); __weak_alias(strptime,_strptime) #endif +#ifdef __CYGWIN__ +typedef struct { + const char *abday[7]; + const char *day[7]; + const char *abmon[12]; + const char *mon[12]; + const char *am_pm[2]; + const char *d_t_fmt; + const char *d_fmt; + const char *t_fmt; + const char *t_fmt_ampm; +} _TimeLocale; + +extern _TimeLocale *_CurrentTimeLocale; +extern _TimeLocale _DefaultTimeLocale; +#endif + #define _ctloc(x) (_CurrentTimeLocale->x) /* |