update
This commit is contained in:
8
stdarg.h
8
stdarg.h
@ -4,8 +4,12 @@
|
||||
typedef char *va_list;
|
||||
|
||||
/* only correct for i386 */
|
||||
#define va_start(ap,last) ap=(char *)&(last);
|
||||
#define va_arg(ap,type) (ap-=sizeof (type), *(type *)(ap))
|
||||
/* XXX: incorrect for type size different than 4 bytes*/
|
||||
#define va_start(ap,last) ap = ((char *)&(last)) + sizeof(int);
|
||||
#define va_arg(ap,type) (ap += sizeof(int), *(type *)(ap - sizeof(int)))
|
||||
#define va_end(ap)
|
||||
|
||||
/* fix a buggy dependency on GCC in libio.h */
|
||||
typedef va_list __gnuc_va_list;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user