aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorKen Dyck <ken.dyck@onsemi.com>2009-11-19 14:16:57 +0000
committerKen Dyck <ken.dyck@onsemi.com>2009-11-19 14:16:57 +0000
commit7635d2151d6045f8106bf947a8e536c1497a7c4e (patch)
tree25a350d89aac22031d6239e460881dac4da995a8 /lib/Frontend/InitPreprocessor.cpp
parent4b7d945699c83d5faf136eeef45c108c32063e23 (diff)
Add __WINT_WIDTH__ to paramaterize the limits of WINT_MIN and WINT_MAX in
stdint.h. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89348 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--lib/Frontend/InitPreprocessor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Frontend/InitPreprocessor.cpp b/lib/Frontend/InitPreprocessor.cpp
index c2fd8d7360..2e860145fa 100644
--- a/lib/Frontend/InitPreprocessor.cpp
+++ b/lib/Frontend/InitPreprocessor.cpp
@@ -399,6 +399,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
DefineTypeWidth("__SIZE_WIDTH__", TI.getSizeType(), TI, Buf);
DefineType("__WCHAR_TYPE__", TI.getWCharType(), Buf);
DefineType("__WINT_TYPE__", TI.getWIntType(), Buf);
+ DefineTypeWidth("__WINT_WIDTH__", TI.getWIntType(), TI, Buf);
DefineFloatMacros(Buf, "FLT", &TI.getFloatFormat());
DefineFloatMacros(Buf, "DBL", &TI.getDoubleFormat());