Add __PTRDIFF_WIDTH__ macro to eventually replace __PTRDIFF_TYPE__ in stdint.h.

llvm-svn: 89342
This commit is contained in:
Ken Dyck
2009-11-19 12:21:52 +00:00
parent 3846506466
commit 056efe0fc7
2 changed files with 12 additions and 0 deletions

View File

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