diff options
author | Ken Dyck <ken.dyck@onsemi.com> | 2009-11-19 15:53:08 +0000 |
---|---|---|
committer | Ken Dyck <ken.dyck@onsemi.com> | 2009-11-19 15:53:08 +0000 |
commit | c2bae59b00b7302b17678b493c2d92e9a2598710 (patch) | |
tree | 44a12485c6bbb4149fcf7cbb29b78928a7b29586 | |
parent | 63e6561343b6bacf6509399a6d8fcce1c039d987 (diff) |
Define WCHAR_MIN and WCHAR_MAX in terms of __WCHAR_WIDTH__ for consistency with
other limit macros.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89355 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Headers/stdint.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Headers/stdint.h b/lib/Headers/stdint.h index a25f8f52aa..e49b25c287 100644 --- a/lib/Headers/stdint.h +++ b/lib/Headers/stdint.h @@ -625,10 +625,10 @@ typedef __stdint_exjoin3(uint, __INTMAX_WIDTH__, _t) uintmax_t; * 0 .. Max. */ #ifndef WCHAR_MAX -#define WCHAR_MAX __WCHAR_MAX__ +#define WCHAR_MAX __stdint_exjoin3(INT, __WCHAR_WIDTH__, _MAX) #endif #ifndef WCHAR_MIN -#define WCHAR_MIN (-__WCHAR_MAX__-1) +#define WCHAR_MIN __stdint_exjoin3(INT, __WCHAR_WIDTH__, _MIN) #endif /* 7.18.4.2 Macros for greatest-width integer constants. */ |