summaryrefslogtreecommitdiffhomepage
path: root/src
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-08-25 09:21:27 +0200
commit4ebb0b84f0dd76e8c504b8190916ad9a02dcb306 (patch)
treeb43f629f13e974bea44331537daa06109de32f71 /src
parent4baa2b268899ed76a99d1758582b8bdc72910dea (diff)
Claim to be older GCC version 4.2.0.
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.
Diffstat (limited to 'src')
-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);