From 0ac29b53dc038408b08e0f8515ae6edabc145f76 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Thu, 20 Apr 2017 22:01:50 +0200 Subject: Add support of musl-libc The port is functional. Bound checking is not supported yet. --- libtcc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libtcc.c') diff --git a/libtcc.c b/libtcc.c index 337a6f2..99bf783 100644 --- a/libtcc.c +++ b/libtcc.c @@ -851,6 +851,10 @@ LIBTCCAPI TCCState *tcc_new(void) tcc_define_symbol(s, "__ILP32__", NULL); #endif +#if defined(TCC_MUSL) + tcc_define_symbol(s, "__builtin_va_list", "void *"); +#endif /* TCC_MUSL */ + #ifdef TCC_TARGET_PE tcc_define_symbol(s, "__WCHAR_TYPE__", "unsigned short"); tcc_define_symbol(s, "__WINT_TYPE__", "unsigned short"); -- cgit v1.3.1