diff options
author | Ed Schouten <ed@nuxi.nl> | 2017-12-05 09:13:18 +0000 |
---|---|---|
committer | Ed Schouten <ed@nuxi.nl> | 2017-12-05 09:13:18 +0000 |
commit | 148bf27107ea5444fdd3fc4d9e4b086e7b213665 (patch) | |
tree | 5ea28056928fe7926a67fb7fea5b4055d13b0843 /lib/Frontend | |
parent | 6b5f9b882eb64ae542db18f34be6df2c100286df (diff) |
Add __WINT_MAX__.
This definition is similar to __WCHAR_MAX__, except that it applies to
wint_t. It's also documented as being supported by GCC 4.5 and later.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319746 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend')
-rw-r--r-- | lib/Frontend/InitPreprocessor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Frontend/InitPreprocessor.cpp b/lib/Frontend/InitPreprocessor.cpp index 2d8caa20c0..617b6aabcc 100644 --- a/lib/Frontend/InitPreprocessor.cpp +++ b/lib/Frontend/InitPreprocessor.cpp @@ -751,6 +751,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI, DefineTypeSize("__LONG_MAX__", TargetInfo::SignedLong, TI, Builder); DefineTypeSize("__LONG_LONG_MAX__", TargetInfo::SignedLongLong, TI, Builder); DefineTypeSize("__WCHAR_MAX__", TI.getWCharType(), TI, Builder); + DefineTypeSize("__WINT_MAX__", TI.getWIntType(), TI, Builder); DefineTypeSize("__INTMAX_MAX__", TI.getIntMaxType(), TI, Builder); DefineTypeSize("__SIZE_MAX__", TI.getSizeType(), TI, Builder); |