[git commit future 1/1] locale.c, uClibc_locale.h: provide hidden __curlocale[_set]

Peter S. Mazinger ps.m at gmx.net
Wed Mar 16 19:20:32 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=99987de779178e29a435c728aad14775bbee01c0
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 libc/misc/locale/locale.c                      |    2 ++
 libc/sysdeps/linux/common/bits/uClibc_locale.h |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libc/misc/locale/locale.c b/libc/misc/locale/locale.c
index c32b20c..756ad35 100644
--- a/libc/misc/locale/locale.c
+++ b/libc/misc/locale/locale.c
@@ -1394,6 +1394,7 @@ __locale_t weak_const_function __curlocale(void)
 {
 	return __curlocale_var; /* This is overriden by the thread version. */
 }
+libc_hidden_weak(__curlocale)
 
 __locale_t weak_function __curlocale_set(__locale_t newloc)
 {
@@ -1402,6 +1403,7 @@ __locale_t weak_function __curlocale_set(__locale_t newloc)
 	__curlocale_var = newloc;
 	return oldloc;
 }
+libc_hidden_weak(__curlocale_set)
 
 #endif
 
diff --git a/libc/sysdeps/linux/common/bits/uClibc_locale.h b/libc/sysdeps/linux/common/bits/uClibc_locale.h
index 9790da2..05d9b4d 100644
--- a/libc/sysdeps/linux/common/bits/uClibc_locale.h
+++ b/libc/sysdeps/linux/common/bits/uClibc_locale.h
@@ -338,7 +338,9 @@ extern int __locale_mbrtowc_l(wchar_t *__restrict dst,
 extern __locale_t __curlocale_var;
 # ifdef __UCLIBC_HAS_THREADS__
 extern __locale_t __curlocale(void)  __THROW __attribute__ ((__const__));
+libc_hidden_proto(__curlocale)
 extern __locale_t __curlocale_set(__locale_t newloc);
+libc_hidden_proto(__curlocale_set)
 #  define __UCLIBC_CURLOCALE  (__curlocale())
 # else
 #  define __UCLIBC_CURLOCALE  (__curlocale_var)
-- 
1.7.3.4



More information about the uClibc-cvs mailing list