summaryrefslogtreecommitdiffstats
path: root/include/wchar.h
diff options
context:
space:
mode:
authortheraven <theraven@FreeBSD.org>2012-02-14 12:03:23 +0000
committertheraven <theraven@FreeBSD.org>2012-02-14 12:03:23 +0000
commitb529e734cb0e714064ede8ada785785cf36328b3 (patch)
treed83544c2e798a9a440baf38564df616970b2b0f5 /include/wchar.h
parentbcfaf51260694a128c1375064baa2ce595f66f24 (diff)
downloadFreeBSD-src-b529e734cb0e714064ede8ada785785cf36328b3.zip
FreeBSD-src-b529e734cb0e714064ede8ada785785cf36328b3.tar.gz
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)
Diffstat (limited to 'include/wchar.h')
-rw-r--r--include/wchar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/wchar.h b/include/wchar.h
index c641165..4e44b53 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -224,6 +224,10 @@ wchar_t *fgetwln(FILE * __restrict, size_t * __restrict);
size_t wcslcat(wchar_t *, const wchar_t *, size_t);
size_t wcslcpy(wchar_t *, const wchar_t *, size_t);
#endif
+
+#if __POSIX_VISIBLE >= 200809
+#include <xlocale/_wchar.h>
+#endif
__END_DECLS
#endif /* !_WCHAR_H_ */
OpenPOWER on IntegriCloud