diff options
author | Chris Lattner <sabre@nondot.org> | 2009-10-21 04:59:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-10-21 04:59:34 +0000 |
commit | e64ef80363c84f4f431e26b61db554c89beeddb6 (patch) | |
tree | f4c3ad0469aa2b2018464b5ab67aa7ab91ac3ef6 /lib/Frontend/InitPreprocessor.cpp | |
parent | ea26cb522e88fc86b0d1cae61dcefcfe4cc20231 (diff) |
hookize wint_t's definition, patch by Edward O'Callaghan (from PR5233).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84740 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/InitPreprocessor.cpp')
-rw-r--r-- | lib/Frontend/InitPreprocessor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Frontend/InitPreprocessor.cpp b/lib/Frontend/InitPreprocessor.cpp index 2c16da0b99..b1a0a5ee8d 100644 --- a/lib/Frontend/InitPreprocessor.cpp +++ b/lib/Frontend/InitPreprocessor.cpp @@ -374,8 +374,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI, DefineType("__INTPTR_TYPE__", TI.getIntPtrType(), Buf); DefineType("__SIZE_TYPE__", TI.getSizeType(), Buf); DefineType("__WCHAR_TYPE__", TI.getWCharType(), Buf); - // FIXME: TargetInfo hookize __WINT_TYPE__. - DefineBuiltinMacro(Buf, "__WINT_TYPE__=int"); + DefineType("__WINT_TYPE__", TI.getWIntType(), Buf); DefineFloatMacros(Buf, "FLT", &TI.getFloatFormat()); DefineFloatMacros(Buf, "DBL", &TI.getDoubleFormat()); |