summaryrefslogtreecommitdiff
path: root/klibc/include/stdarg.h
diff options
context:
space:
mode:
Diffstat (limited to 'klibc/include/stdarg.h')
-rw-r--r--klibc/include/stdarg.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/klibc/include/stdarg.h b/klibc/include/stdarg.h
new file mode 100644
index 0000000000..cc324b825d
--- /dev/null
+++ b/klibc/include/stdarg.h
@@ -0,0 +1,14 @@
+/*
+ * stdarg.h
+ *
+ * This is just a wrapper for the gcc one, but defines va_copy()
+ * even if gcc doesn't.
+ */
+
+/* Note: the _STDARG_H macro belongs to the gcc header... */
+#include_next <stdarg.h>
+
+/* Older gcc considers this an extension, so it's double underbar only */
+#ifndef va_copy
+#define va_copy(d,s) __va_copy(d,s)
+#endif