summaryrefslogtreecommitdiff
path: root/include/stdlib.h
diff options
context:
space:
mode:
authorDavid Chisnall <theraven@FreeBSD.org>2012-03-28 12:11:54 +0000
committerDavid Chisnall <theraven@FreeBSD.org>2012-03-28 12:11:54 +0000
commit3ac9d659890471a1936268bfec06e74caf9025df (patch)
tree017678a192a23335e68a28fe397622367d1cc587 /include/stdlib.h
parent86e4703fa6904240616f9ab1d313c10e3ec80afa (diff)
downloadsrc-test2-3ac9d659890471a1936268bfec06e74caf9025df.tar.gz
src-test2-3ac9d659890471a1936268bfec06e74caf9025df.zip
Correctly expose xlocale functions if people include the headers in the wrong
order (as some ports apparently do). Approved by: dim (mentor)
Notes
Notes: svn path=/head/; revision=233600
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 11ac074374dd..7aa5db62fd04 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -72,6 +72,9 @@ typedef struct {
#define RAND_MAX 0x7fffffff
__BEGIN_DECLS
+#ifdef _XLOCALE_H_
+#include <xlocale/_stdlib.h>
+#endif
extern int __mb_cur_max;
extern int ___mb_cur_max(void);
#define MB_CUR_MAX (___mb_cur_max())