* include/sys/localedef.h: Remove.

* libc/strptime.cc: Define _TimeLocale and declare _CurrentTimeLocale
	as well as _DefaultTimeLocale locally for Cygwin.
This commit is contained in:
Corinna Vinschen
2008-05-08 14:58:11 +00:00
parent 72d1a8a04a
commit 12b830981e
3 changed files with 24 additions and 101 deletions

View File

@ -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)
/*