mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-23 14:00:08 +00:00
The home-grown versions don't work properly for static variadic functions, when gcc can choose to use a non-standard calling convention.
11 lines
320 B
C
11 lines
320 B
C
#ifndef _STDARG_H
|
|
#define _STDARG_H
|
|
|
|
typedef __builtin_va_list va_list;
|
|
#define va_start( ap, last ) __builtin_va_start ( ap, last )
|
|
#define va_arg( ap, type ) __builtin_va_arg ( ap, type )
|
|
#define va_end( ap ) __builtin_va_end ( ap )
|
|
#define va_copy( dest, src ) __builtin_va_copy ( dest, src )
|
|
|
|
#endif /* _STDARG_H */
|