1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00

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
MFC after:	1 week
This commit is contained in:
Pedro F. Giffuni 2016-07-19 20:22:13 +00:00
parent 8395cdc108
commit 5c4d28f5dc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=303046

View File

@ -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);