forked from CloverHackyColor/CloverBootloader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdarwin-c.patch
More file actions
18 lines (17 loc) · 964 Bytes
/
Copy pathdarwin-c.patch
File metadata and controls
18 lines (17 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/gcc/config/darwin-c.c b/gcc/config/darwin-c.c
index aa5d2f2..9440b30 100644
--- a/gcc/config/darwin-c.c
+++ b/gcc/config/darwin-c.c
@@ -731,6 +731,13 @@ darwin_cpp_builtins (cpp_reader *pfile)
builtin_define_with_value ("__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__",
macosx_version_as_macro(), false);
+ /* Until we implement __has-builtin, __has_feature, __has_extension it's
+ better to jam them to 0 than to fight the cases where system headers
+ have not been tested with GCC. */
+ builtin_define_with_value ("__has_builtin(X)", "0", false);
+ builtin_define_with_value ("__has_feature(X)", "0", false);
+ builtin_define_with_value ("__has_extension(X)", "0", false);
+
/* Since we do not (at 4.6) support ObjC gc for the NeXT runtime, the
following will cause a syntax error if one tries to compile gc attributed
items. However, without this, NeXT system headers cannot be parsed