Be smarter about macros available from cl.exe.

Some macros are defined not by cl.exe purely, but are pretty standard.
We add those manually anyway. Also, remove compiler-specific macro
definitions from the model manager. They should be provided by the tool
chains only.
This commit is contained in:
Daniel Molkentin
2009-09-16 17:16:29 +02:00
parent b8b37cb0b5
commit 37d73f321d
3 changed files with 75 additions and 15 deletions

View File

@@ -132,13 +132,7 @@ static const char pp_configuration_file[] = "<configuration>";
static const char pp_configuration[] =
"# 1 \"<configuration>\"\n"
"#define __GNUC_MINOR__ 0\n"
"#define __GNUC__ 4\n"
"#define __GNUG__ 4\n"
"#define __STDC_HOSTED__ 1\n"
"#define __VERSION__ \"4.0.1 (fake)\"\n"
"#define __cplusplus 1\n"
"#define __extension__\n"
"#define __context__\n"
"#define __range__\n"