fix __time_load_locale return code
- add explicit __HAVE_LOCALE_INFO__ check
This commit is contained in:
parent
9ae9eef21d
commit
e7858c0a58
|
@ -147,10 +147,11 @@ int
|
||||||
__time_load_locale (struct __locale_t *locale, const char *name,
|
__time_load_locale (struct __locale_t *locale, const char *name,
|
||||||
void *f_wctomb, const char *charset)
|
void *f_wctomb, const char *charset)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret = 0;
|
||||||
struct lc_time_T ti;
|
struct lc_time_T ti;
|
||||||
char *bufp = NULL;
|
char *bufp = NULL;
|
||||||
|
|
||||||
|
#ifdef __HAVE_LOCALE_INFO__
|
||||||
#ifdef __CYGWIN__
|
#ifdef __CYGWIN__
|
||||||
extern int __set_lc_time_from_win (const char *, const struct lc_time_T *,
|
extern int __set_lc_time_from_win (const char *, const struct lc_time_T *,
|
||||||
struct lc_time_T *, char **, void *,
|
struct lc_time_T *, char **, void *,
|
||||||
|
@ -186,5 +187,6 @@ __time_load_locale (struct __locale_t *locale, const char *name,
|
||||||
#else
|
#else
|
||||||
/* TODO */
|
/* TODO */
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* __HAVE_LOCALE_INFO__ */
|
||||||
return (ret);
|
return (ret);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue