diff options
author | Ken Dyck <ken.dyck@onsemi.com> | 2009-11-19 15:47:58 +0000 |
---|---|---|
committer | Ken Dyck <ken.dyck@onsemi.com> | 2009-11-19 15:47:58 +0000 |
commit | 63e6561343b6bacf6509399a6d8fcce1c039d987 (patch) | |
tree | c773a09b70df335a9bbae6e1e09ffd31dcc64026 /lib/Frontend/InitPreprocessor.cpp | |
parent | 347ca7ec5d2111fc456101e1c28afb6a5be3f8dc (diff) |
Define __WCHAR_WIDTH__ for use in stdint.h.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89353 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/InitPreprocessor.cpp')
-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 2e860145fa..a6b4e652a4 100644 --- a/lib/Frontend/InitPreprocessor.cpp +++ b/lib/Frontend/InitPreprocessor.cpp @@ -398,6 +398,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI, DefineType("__SIZE_TYPE__", TI.getSizeType(), Buf); DefineTypeWidth("__SIZE_WIDTH__", TI.getSizeType(), TI, Buf); DefineType("__WCHAR_TYPE__", TI.getWCharType(), Buf); + DefineTypeWidth("__WCHAR_WIDTH__", TI.getWCharType(), TI, Buf); DefineType("__WINT_TYPE__", TI.getWIntType(), Buf); DefineTypeWidth("__WINT_WIDTH__", TI.getWIntType(), TI, Buf); |