summaryrefslogtreecommitdiffstats
path: root/include/wchar.h
diff options
context:
space:
mode:
authortheraven <theraven@FreeBSD.org>2012-03-28 12:11:54 +0000
committertheraven <theraven@FreeBSD.org>2012-03-28 12:11:54 +0000
commitde5013d7b6efb58c86955f3cb79b7715ecc992f5 (patch)
tree017678a192a23335e68a28fe397622367d1cc587 /include/wchar.h
parent21244ace965c07de82582a9d0101b1dfb283a40b (diff)
downloadFreeBSD-src-de5013d7b6efb58c86955f3cb79b7715ecc992f5.zip
FreeBSD-src-de5013d7b6efb58c86955f3cb79b7715ecc992f5.tar.gz
Correctly expose xlocale functions if people include the headers in the wrong
order (as some ports apparently do). Approved by: dim (mentor)
Diffstat (limited to 'include/wchar.h')
-rw-r--r--include/wchar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wchar.h b/include/wchar.h
index 4e44b53..1ebb72f 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -225,7 +225,7 @@ 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
+#if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_)
#include <xlocale/_wchar.h>
#endif
__END_DECLS
OpenPOWER on IntegriCloud