diff options
| author | Marc Vertes <mvertes@free.fr> | 2017-04-20 22:01:50 +0200 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2017-04-20 22:01:50 +0200 |
| commit | 0ac29b53dc038408b08e0f8515ae6edabc145f76 (patch) | |
| tree | 486075117b53ddca84c5d42adb7b8b182277b0ed /libtcc.c | |
| parent | 328b826e8a43ed39f9eebb8493cc6abea2ddac1c (diff) | |
| download | tinycc-0ac29b53dc038408b08e0f8515ae6edabc145f76.tar.gz tinycc-0ac29b53dc038408b08e0f8515ae6edabc145f76.tar.bz2 | |
Add support of musl-libc
The port is functional. Bound checking is not supported yet.
Diffstat (limited to 'libtcc.c')
| -rw-r--r-- | libtcc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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"); |
