Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2010-05-12 00:40:14 +0400
committerJeff Johnston <jjohnstn@redhat.com>2010-05-12 00:40:14 +0400
commit60bdafbbdac1f3e4d5939844d7f133d4e519c012 (patch)
tree401b284651f9b8813d82a4388c971281a6ff4ed4 /newlib
parenteb2c2b6e6ebd80f51ba3bd09177563f7640fa0b0 (diff)
2010-05-11 Jeff Johnston <jjohnstn@redhat.com>
* libc/locale/locale.c (loadlocale): Fix dangling switch statement caused by __HAVE_LOCALE_INFO__ not being defined.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog6
-rw-r--r--newlib/libc/locale/locale.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index d938fb248..78d1a3a99 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,9 @@
+2010-05-11 Jeff Johnston <jjohnstn@redhat.com>
+
+ * libc/locale/locale.c (loadlocale): Fix dangling
+ switch statement caused by __HAVE_LOCALE_INFO__ not being
+ defined.
+
2010-05-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* libc/string/strsignal.c: New file.
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c
index a204d3412..953da1376 100644
--- a/newlib/libc/locale/locale.c
+++ b/newlib/libc/locale/locale.c
@@ -882,9 +882,11 @@ restart:
case LC_TIME:
ret = __time_load_locale (locale, (void *) l_wctomb, charset);
break;
+#endif /* __HAVE_LOCALE_INFO__ */
default:
break;
}
+#ifdef __HAVE_LOCALE_INFO__
if (ret)
FAIL;
#endif /* __HAVE_LOCALE_INFO__ */