NetBSD: predefine __ELF__ macro which is tested by some standard headers

This commit is contained in:
Christian Jullien 2020-12-13 07:24:01 +01:00
parent f233cb182c
commit c32cfc1113

View File

@ -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");