summaryrefslogtreecommitdiffstats
path: root/include/stdlib.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/stdlib.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/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 11ac074..7aa5db6 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())
OpenPOWER on IntegriCloud