Always define __SIZE_TYPE__ as long unsigned int.

llvm-svn: 53922
This commit is contained in:
Anders Carlsson 2008-07-22 17:16:13 +00:00
parent 5dd9c0eaf6
commit 35a56368be
1 changed files with 1 additions and 2 deletions

View File

@ -225,15 +225,14 @@ static void getX86Defines(std::vector<char> &Defs, bool is64Bit) {
Define(Defs, "__LONG_MAX__", "9223372036854775807L");
Define(Defs, "__PTRDIFF_TYPE__", "long int");
Define(Defs, "__UINTMAX_TYPE__", "long unsigned int");
Define(Defs, "__SIZE_TYPE__", "long unsigned int");
} else {
Define(Defs, "__INTMAX_MAX__", "9223372036854775807LL");
Define(Defs, "__INTMAX_TYPE__", "long long int");
Define(Defs, "__LONG_MAX__", "2147483647L");
Define(Defs, "__PTRDIFF_TYPE__", "int");
Define(Defs, "__UINTMAX_TYPE__", "long long unsigned int");
Define(Defs, "__SIZE_TYPE__", "unsigned int");
}
Define(Defs, "__SIZE_TYPE__", "long unsigned int");
Define(Defs, "__CHAR_BIT__", "8");
Define(Defs, "__INT_MAX__", "2147483647");
Define(Defs, "__LONG_LONG_MAX__", "9223372036854775807LL");