Skip to content

Commit 41b83ca

Browse files
[compiler-rt] Fix build errors with gcc
This patch fixes: compiler-rt/lib/builtins/crtbegin.c:11:18: error: missing binary operator before token "(" compiler-rt/lib/builtins/crtbegin.c:53:18: error: missing binary operator before token "(" compiler-rt/lib/builtins/crtbegin.c:124:18: error: missing binary operator before token "("
1 parent 3a226db commit 41b83ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler-rt/lib/builtins/crtbegin.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
#include <stddef.h>
1010

11+
#ifndef __has_feature
12+
# define __has_feature(x) 0
13+
#endif
14+
1115
#if __has_feature(ptrauth_init_fini)
1216
#include <ptrauth.h>
1317
#endif

0 commit comments

Comments
 (0)