aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@celest.fr>2010-09-11 17:57:15 +0200
committerThomas Preud'homme <thomas.preudhomme@celest.fr>2010-09-12 01:19:19 +0200
commit2596273fce52e1f9db1b03d495537614fd56cef5 (patch)
treec4e648cc61cd33a40bed5978db9089b9b707173f /libtcc.c
parent3f829d11ff231980383c384df2ae38e369cd8079 (diff)
downloadtinycc-2596273fce52e1f9db1b03d495537614fd56cef5.tar.gz
tinycc-2596273fce52e1f9db1b03d495537614fd56cef5.tar.bz2
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.
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libtcc.c b/libtcc.c
index a89ecc3..a755708 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -970,6 +970,9 @@ LIBTCCAPI TCCState *tcc_new(void)
#else
tcc_define_symbol(s, "__WCHAR_TYPE__", "int");
#endif
+
+ /* glibc defines */
+ tcc_define_symbol(s, "__REDIRECT_NTH(name, proto, alias)", "name proto __asm__ (#alias) __THROW");
#ifndef TCC_TARGET_PE
/* default library paths */