mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-31 06:20:06 +08:00
NetBSD: predefine __ELF__ macro which is tested by some standard headers
This commit is contained in:
parent
f233cb182c
commit
c32cfc1113
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_MINOR__", "0");
|
||||||
tcc_define_symbol(s, "__GNUC_PATCHLEVEL__", "0");
|
tcc_define_symbol(s, "__GNUC_PATCHLEVEL__", "0");
|
||||||
tcc_define_symbol(s, "_Pragma(x)", "");
|
tcc_define_symbol(s, "_Pragma(x)", "");
|
||||||
|
tcc_define_symbol(s, "__ELF__", "1");
|
||||||
# endif
|
# endif
|
||||||
# if defined(__OpenBSD__)
|
# if defined(__OpenBSD__)
|
||||||
tcc_define_symbol(s, "__OpenBSD__", "1");
|
tcc_define_symbol(s, "__OpenBSD__", "1");
|
||||||
|
Loading…
Reference in New Issue
Block a user