summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorManuel Mohr <manuel.mohr@kit.edu>2016-07-04 18:23:08 +0200
committerManuel Mohr <manuel.mohr@kit.edu>2016-07-04 18:23:08 +0200
commit717690715192cb341a9a76371d4545eae0a1d626 (patch)
tree15a65cba7591fbb441d41357ae39474177a1a005
parenta3047e0eb4b9483dd2369b0d3954d117527da735 (diff)
Claim to be older GCC version 4.2.0.gcc_version
This is the same version that Clang pretends to be. It prevents being served certain macro definitions by newer glibc headers (e.g., math.h) that refer to builtin functions that we do not implement, and which are not present in glibc as functions. This fixes #176.
-rw-r--r--src/driver/predefs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/predefs.c b/src/driver/predefs.c
index ca7a7bf..fb0dd82 100644
--- a/src/driver/predefs.c
+++ b/src/driver/predefs.c
@@ -285,7 +285,7 @@ void add_predefined_macros(void)
/* let's pretend we are a GCC compiler */
add_define("__GNUC__", "4", false);
- add_define("__GNUC_MINOR__", "6", false);
+ add_define("__GNUC_MINOR__", "2", false);
add_define("__GNUC_PATCHLEVEL__", "0", false);
if (dialect.cpp)
add_define("__GNUG__", "4", false);