summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/libc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/libc')
-rw-r--r--winsup/cygwin/libc/strptime.cc19
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)
/*