diff options
author | Alexander Kabaev <kan@FreeBSD.org> | 2003-04-28 22:40:05 +0000 |
---|---|---|
committer | Alexander Kabaev <kan@FreeBSD.org> | 2003-04-28 22:40:05 +0000 |
commit | 287365fffac637c5d27dd2065c34f9ec8f92713a (patch) | |
tree | 8419e5a3ad357f1b042967f6c8c53a055b00a91d /include/wchar.h | |
parent | 35653f3843dc5f8be659b0d6f9141ee8b61f8487 (diff) | |
download | src-test2-287365fffac637c5d27dd2065c34f9ec8f92713a.tar.gz src-test2-287365fffac637c5d27dd2065c34f9ec8f92713a.zip |
Add definitions for WCHAR_MIN and WCHAR_MAX.
Notes
Notes:
svn path=/head/; revision=114185
Diffstat (limited to 'include/wchar.h')
-rw-r--r-- | include/wchar.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wchar.h b/include/wchar.h index 4900c20cfa59..2b51040dbad5 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 |