summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-07-26 14:12:11 +0000
committerpfg <pfg@FreeBSD.org>2016-07-26 14:12:11 +0000
commit5297c0ef27294ec38a4b1080348ae12c7402eecb (patch)
tree8faba08b72d61ca52b8ad3c9949f3769ffa412f9 /lib/libc
parentfab477420776a3080f08726a632aca5eb14eecba (diff)
downloadFreeBSD-src-5297c0ef27294ec38a4b1080348ae12c7402eecb.zip
FreeBSD-src-5297c0ef27294ec38a4b1080348ae12c7402eecb.tar.gz
MFC r303046:
libc: tag the rune initialization function prototypes visibility as hidden. It is good practice to export as few symbols as possible from your shared libraries, so use the GCC visibility attribute in this case, matching what Apple's libc does. Reference: https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/CppRuntimeEnv/Articles/SymbolVisibility.html Hinted by: Apple's libc 1082.20.4 Approved by: re (gjb)
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/locale/mblocal.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/libc/locale/mblocal.h b/lib/libc/locale/mblocal.h
index 75eab96..c4724b5 100644
--- a/lib/libc/locale/mblocal.h
+++ b/lib/libc/locale/mblocal.h
@@ -65,18 +65,18 @@ extern struct xlocale_ctype __xlocale_global_ctype;
/*
* Rune initialization function prototypes.
*/
-int _none_init(struct xlocale_ctype *, _RuneLocale *);
-int _UTF8_init(struct xlocale_ctype *, _RuneLocale *);
-int _EUC_CN_init(struct xlocale_ctype *, _RuneLocale *);
-int _EUC_JP_init(struct xlocale_ctype *, _RuneLocale *);
-int _EUC_KR_init(struct xlocale_ctype *, _RuneLocale *);
-int _EUC_TW_init(struct xlocale_ctype *, _RuneLocale *);
-int _GB18030_init(struct xlocale_ctype *, _RuneLocale *);
-int _GB2312_init(struct xlocale_ctype *, _RuneLocale *);
-int _GBK_init(struct xlocale_ctype *, _RuneLocale *);
-int _BIG5_init(struct xlocale_ctype *, _RuneLocale *);
-int _MSKanji_init(struct xlocale_ctype *, _RuneLocale *);
-int _ascii_init(struct xlocale_ctype *, _RuneLocale *);
+__hidden int _none_init(struct xlocale_ctype *, _RuneLocale *);
+__hidden int _ascii_init(struct xlocale_ctype *, _RuneLocale *);
+__hidden int _UTF8_init(struct xlocale_ctype *, _RuneLocale *);
+__hidden int _EUC_CN_init(struct xlocale_ctype *, _RuneLocale *);
+__hidden int _EUC_JP_init(struct xlocale_ctype *, _RuneLocale *);
+__hidden int _EUC_KR_init(struct xlocale_ctype *, _RuneLocale *);
+__hidden int _EUC_TW_init(struct xlocale_ctype *, _RuneLocale *);
+__hidden int _GB18030_init(struct xlocale_ctype *, _RuneLocale *);
+__hidden int _GB2312_init(struct xlocale_ctype *, _RuneLocale *);
+__hidden int _GBK_init(struct xlocale_ctype *, _RuneLocale *);
+__hidden int _BIG5_init(struct xlocale_ctype *, _RuneLocale *);
+__hidden int _MSKanji_init(struct xlocale_ctype *, _RuneLocale *);
typedef size_t (*mbrtowc_pfn_t)(wchar_t * __restrict,
const char * __restrict, size_t, mbstate_t * __restrict);
OpenPOWER on IntegriCloud