aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2017-04-20 22:01:50 +0200
committerMarc Vertes <mvertes@free.fr>2017-04-20 22:01:50 +0200
commit0ac29b53dc038408b08e0f8515ae6edabc145f76 (patch)
tree486075117b53ddca84c5d42adb7b8b182277b0ed /include
parent328b826e8a43ed39f9eebb8493cc6abea2ddac1c (diff)
downloadtinycc-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 'include')
-rw-r--r--include/stdarg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/stdarg.h b/include/stdarg.h
index 10ce733..9adfc61 100644
--- a/include/stdarg.h
+++ b/include/stdarg.h
@@ -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);