diff options
| author | Michael Brown | 2007-06-09 19:11:07 +0200 |
|---|---|---|
| committer | Michael Brown | 2007-06-10 01:29:53 +0200 |
| commit | adf6c8e2a6550fb5ac4573bd1ac37c404e8f6e78 (patch) | |
| tree | 69974d5e931b456fefa23899abfe0556c021108a | |
| parent | Ignore external directories (bochs, qemu) within contrib/bochs. (diff) | |
| download | ipxe-adf6c8e2a6550fb5ac4573bd1ac37c404e8f6e78.tar.gz ipxe-adf6c8e2a6550fb5ac4573bd1ac37c404e8f6e78.tar.xz ipxe-adf6c8e2a6550fb5ac4573bd1ac37c404e8f6e78.zip | |
Add our own trivial version of stdarg.h. This makes our build
entirely self-hosted (which avoids problems when building the same
tree on multiple systems - e.g. when you have /home NFS-mounted).
Also saves around 50 bytes in total - not sure why.
| -rw-r--r-- | src/arch/i386/include/stdarg.h | 22 |
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 */ |
