NetBSD: predefine __ELF__ macro which is tested by some standard headers
This commit is contained in:
parent
f233cb182c
commit
c32cfc1113
1 changed files with 1 additions and 0 deletions
1
libtcc.c
1
libtcc.c
|
|
@ -894,6 +894,7 @@ LIBTCCAPI TCCState *tcc_new(void)
|
|||
tcc_define_symbol(s, "__GNUC_MINOR__", "0");
|
||||
tcc_define_symbol(s, "__GNUC_PATCHLEVEL__", "0");
|
||||
tcc_define_symbol(s, "_Pragma(x)", "");
|
||||
tcc_define_symbol(s, "__ELF__", "1");
|
||||
# endif
|
||||
# if defined(__OpenBSD__)
|
||||
tcc_define_symbol(s, "__OpenBSD__", "1");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue