Add support of musl-libc

The port is functional. Bound checking is not supported yet.
This commit is contained in:
Marc Vertes
2017-04-20 22:01:50 +02:00
parent 328b826e8a
commit 0ac29b53dc
8 changed files with 33 additions and 6 deletions

View File

@@ -16,7 +16,11 @@ typedef struct {
char *reg_save_area;
} __va_list_struct;
/* Avoid conflicting definition for va_list on musl libc */
#ifndef __DEFINED_va_list
typedef __va_list_struct va_list[1];
#define __DEFINED_va_list
#endif
void __va_start(__va_list_struct *ap, void *fp);
void *__va_arg(__va_list_struct *ap, int arg_type, int size, int align);