From b529e734cb0e714064ede8ada785785cf36328b3 Mon Sep 17 00:00:00 2001 From: theraven Date: Tue, 14 Feb 2012 12:03:23 +0000 Subject: Cleanup of xlocale: - Address performance regressions encountered by das@ by caching per-thread data in TLS where available. - Add a __NO_TLS flag to cdefs.h to indicate where not available. - Reorganise the xlocale.h definitions into xlocale/*.h so that they can be included from multiple places. - Export the POSIX2008 subset of xlocale when POSIX2008 says it should be exported, independently of whether xlocale.h is included. - Fix the bug where programs using ctype functions always assumed ASCII unless recompiled. - Fix some style(9) violations. Reviewed by: brooks (mentor) Approved by: dim (mentor) --- include/wctype.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/wctype.h') diff --git a/include/wctype.h b/include/wctype.h index 183a2cd..2a2abd9 100644 --- a/include/wctype.h +++ b/include/wctype.h @@ -87,6 +87,11 @@ wint_t iswrune(wint_t); wint_t iswspecial(wint_t); wint_t nextwctype(wint_t, wctype_t); #endif + +#if __POSIX_VISIBLE >= 200809 +#define _XLOCALE_WCTYPES 1 +#include +#endif /* __POSIX_VISIBLE >= 200809 */ __END_DECLS #ifndef __cplusplus -- cgit v1.1