diff --git a/src/internal/locale_impl.h b/src/internal/locale_impl.h index d5a3cc94fcdc035e9ef6ef07111950221ffbd120..a0863045a9395662eef0fb362c29d8035608ed49 100644 --- a/src/internal/locale_impl.h +++ b/src/internal/locale_impl.h @@ -23,6 +23,7 @@ const struct __locale_map *__get_locale(int, const char *); const char *__mo_lookup(const void *, size_t, const char *); const char *__lctrans(const char *, const struct __locale_map *); const char *__lctrans_cur(const char *); +int __loc_is_allocated(locale_t); #define LCTRANS(msg, lc, loc) __lctrans(msg, (loc)->cat[(lc)]) #define LCTRANS_CUR(msg) __lctrans_cur(msg) diff --git a/src/locale/freelocale.c b/src/locale/freelocale.c index c2ae1a318069376823527d79f4b19a9e8974823e..e75acd66ae03b305f95ad6a1cc3cff3be3e5e3ec 100644 --- a/src/locale/freelocale.c +++ b/src/locale/freelocale.c @@ -2,8 +2,6 @@ #include "locale_impl.h" #include "libc.h" -int __loc_is_allocated(locale_t); - void freelocale(locale_t l) { if (__loc_is_allocated(l)) free(l);