mirror of
https://github.com/mirror/tinycc.git
synced 2026-09-01 12:07:53 +08:00
Add support of musl-libc
The port is functional. Bound checking is not supported yet.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user