Add support for __REDIRECT_NTH needed with eglibc.
Add support for __REDIRECT_NTH as eglibc makes use of this macro to redirect long double functions to long functions on arch not supporting long double.
This commit is contained in:
parent
3f829d11ff
commit
2596273fce
1 changed files with 3 additions and 0 deletions
3
libtcc.c
3
libtcc.c
|
@ -971,6 +971,9 @@ LIBTCCAPI TCCState *tcc_new(void)
|
||||||
tcc_define_symbol(s, "__WCHAR_TYPE__", "int");
|
tcc_define_symbol(s, "__WCHAR_TYPE__", "int");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* glibc defines */
|
||||||
|
tcc_define_symbol(s, "__REDIRECT_NTH(name, proto, alias)", "name proto __asm__ (#alias) __THROW");
|
||||||
|
|
||||||
#ifndef TCC_TARGET_PE
|
#ifndef TCC_TARGET_PE
|
||||||
/* default library paths */
|
/* default library paths */
|
||||||
# if defined(TCC_TARGET_X86_64_CENTOS)
|
# if defined(TCC_TARGET_X86_64_CENTOS)
|
||||||
|
|
Loading…
Reference in a new issue