summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/i386/include/stdarg.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/arch/i386/include/stdarg.h b/src/arch/i386/include/stdarg.h
new file mode 100644
index 000000000..1742cb3f4
--- /dev/null
+++ b/src/arch/i386/include/stdarg.h
@@ -0,0 +1,22 @@
+#ifndef _STDARG_H
+#define _STDARG_H
+
+typedef void * va_list;
+
+#define va_start( ap, last ) do { \
+ ap = ( &last + 1 ); \
+ } while ( 0 )
+
+#define va_arg( ap, type ) ({ \
+ type *_this = ap; \
+ ap = ( _this + 1 ); \
+ *(_this); \
+ })
+
+#define va_end( ap ) do { } while ( 0 )
+
+#define va_copy( dest, src ) do { \
+ dest = src; \
+ } while ( 0 )
+
+#endif /* _STDARG_H */