Predefine __INTPTR_WIDTH__ for future use in stdint.h.

llvm-svn: 89231
This commit is contained in:
Ken Dyck
2009-11-18 20:05:48 +00:00
parent fa01168a5c
commit 24cfcf15c3
2 changed files with 12 additions and 0 deletions

View File

@@ -391,6 +391,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
DefineTypeWidth("__INTMAX_WIDTH__", TI.getIntMaxType(), TI, Buf);
DefineType("__PTRDIFF_TYPE__", TI.getPtrDiffType(0), Buf);
DefineType("__INTPTR_TYPE__", TI.getIntPtrType(), Buf);
DefineTypeWidth("__INTPTR_WIDTH__", TI.getIntPtrType(), TI, Buf);
DefineType("__SIZE_TYPE__", TI.getSizeType(), Buf);
DefineType("__WCHAR_TYPE__", TI.getWCharType(), Buf);
DefineType("__WINT_TYPE__", TI.getWIntType(), Buf);