From 1563f79fa86aa3c5d9eae96e7e662a314c37928c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 10 May 2008 18:57:10 +0000 Subject: * Makefile.in (DLL_OFILES): Remove _def_time.o. * libc/_def_time.c: Remove. Move definitions of _DefaultTimeLocale and _CurrentTimeLocale ... * libc/strptime.cc: ... here. --- winsup/cygwin/libc/strptime.cc | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/libc/strptime.cc') diff --git a/winsup/cygwin/libc/strptime.cc b/winsup/cygwin/libc/strptime.cc index 3bed5ea87..e2f710ae9 100644 --- a/winsup/cygwin/libc/strptime.cc +++ b/winsup/cygwin/libc/strptime.cc @@ -63,8 +63,33 @@ typedef struct { const char *t_fmt_ampm; } _TimeLocale; -extern _TimeLocale *_CurrentTimeLocale; -extern _TimeLocale _DefaultTimeLocale; +_TimeLocale _DefaultTimeLocale = +{ + { + "Sun","Mon","Tue","Wed","Thu","Fri","Sat", + }, + { + "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", + "Friday", "Saturday" + }, + { + "Jan", "Feb", "Mar", "Apr", "May", "Jun", + "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" + }, + { + "January", "February", "March", "April", "May", "June", "July", + "August", "September", "October", "November", "December" + }, + { + "AM", "PM" + }, + "%a %b %e %H:%M:%S %Y", + "%m/%d/%y", + "%H:%M:%S", + "%I:%M:%S %p" +}; + +_TimeLocale *_CurrentTimeLocale = &_DefaultTimeLocale; #endif #define _ctloc(x) (_CurrentTimeLocale->x) -- cgit v1.2.3