summaryrefslogtreecommitdiffstats
path: root/include/wchar.h
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2003-04-28 22:40:05 +0000
committerkan <kan@FreeBSD.org>2003-04-28 22:40:05 +0000
commit6d3163ee9b6526a464a180bffc3c126d4be234f3 (patch)
tree8419e5a3ad357f1b042967f6c8c53a055b00a91d /include/wchar.h
parentd026b2f2e33f65a023f669abe950f456effa6007 (diff)
downloadFreeBSD-src-6d3163ee9b6526a464a180bffc3c126d4be234f3.zip
FreeBSD-src-6d3163ee9b6526a464a180bffc3c126d4be234f3.tar.gz
Add definitions for WCHAR_MIN and WCHAR_MAX.
Diffstat (limited to 'include/wchar.h')
-rw-r--r--include/wchar.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wchar.h b/include/wchar.h
index 4900c20..2b51040 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -69,6 +69,7 @@
#include <sys/cdefs.h>
#include <sys/_types.h>
+#include <machine/_limits.h>
#ifndef NULL
#define NULL 0
@@ -96,6 +97,11 @@ typedef __wint_t wint_t;
#define _WINT_T_DECLARED
#endif
+#ifndef WCHAR_MIN
+#define WCHAR_MIN __INT_MIN
+#define WCHAR_MAX __INT_MAX
+#endif
+
#ifndef WEOF
#define WEOF ((wint_t)-1)
#endif
OpenPOWER on IntegriCloud