summaryrefslogtreecommitdiff
path: root/LibC/stdarg.h
diff options
context:
space:
mode:
Diffstat (limited to 'LibC/stdarg.h')
-rw-r--r--LibC/stdarg.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/LibC/stdarg.h b/LibC/stdarg.h
index 724ffb59d5..c58efc85fa 100644
--- a/LibC/stdarg.h
+++ b/LibC/stdarg.h
@@ -4,11 +4,11 @@
__BEGIN_DECLS
-typedef char* va_list;
+typedef __builtin_va_list va_list;
-#define va_start(ap, v) ap = (va_list)&v + sizeof(v)
-#define va_arg(ap, t) ((t*)(ap += sizeof(t)))[-1]
-#define va_end(ap) ap = nullptr
+#define va_start(v, l) __builtin_va_start(v, l)
+#define va_end(v) __builtin_va_end(v)
+#define va_arg(v, l) __builtin_va_arg(v, l)
__END_DECLS