diff options
author | Chris K. Jester-Young <cky944@gmail.com> | 2012-01-15 13:59:49 -0500 |
---|---|---|
committer | Chris K. Jester-Young <cky944@gmail.com> | 2012-01-15 14:01:55 -0500 |
commit | 1bd9a697b186c9a2c84f7c1028c9292f779ec79a (patch) | |
tree | 2019e8d754816f1e82a518b34bba2607a3ad265d | |
parent | 222056dcf22ae7f1ab52df81a40d286c1eba9b3a (diff) | |
download | guile-1bd9a697b186c9a2c84f7c1028c9292f779ec79a.tar.gz |
Add #ifdefs for langinfo items that don't exist on OpenBSD.
* libguile/i18n.c (define_langinfo_items): Add #ifdefs for ERA_* and
ALT_DIGITS, as those constants don't exist on OpenBSD.
-rw-r--r-- | libguile/i18n.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libguile/i18n.c b/libguile/i18n.c index f833e5d16..4bb9e2137 100644 --- a/libguile/i18n.c +++ b/libguile/i18n.c @@ -1744,13 +1744,23 @@ define_langinfo_items (void) DEFINE_NLITEM_CONSTANT (T_FMT); /* Time format for strftime. */ DEFINE_NLITEM_CONSTANT (T_FMT_AMPM);/* 12-hour time format for strftime. */ +#ifdef ERA DEFINE_NLITEM_CONSTANT (ERA); /* Alternate era. */ +#endif +#ifdef ERA_D_FMT DEFINE_NLITEM_CONSTANT (ERA_D_FMT); /* Date in alternate era format. */ +#endif +#ifdef ERA_D_T_FMT DEFINE_NLITEM_CONSTANT (ERA_D_T_FMT); /* Date and time in alternate era format. */ +#endif +#ifdef ERA_T_FMT DEFINE_NLITEM_CONSTANT (ERA_T_FMT); /* Time in alternate era format. */ +#endif +#ifdef ALT_DIGITS DEFINE_NLITEM_CONSTANT (ALT_DIGITS); /* Alternate symbols for digits. */ +#endif DEFINE_NLITEM_CONSTANT (RADIXCHAR); DEFINE_NLITEM_CONSTANT (THOUSEP); |