mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-26 03:09:12 +00:00
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.
This commit is contained in:
parent
7c8cc3ef6c
commit
1ae549b892
22
src/arch/i386/include/stdarg.h
Normal file
22
src/arch/i386/include/stdarg.h
Normal file
@ -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 */
|
Loading…
Reference in New Issue
Block a user