* 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:
@ -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)
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user