double fix
This commit is contained in:
parent
44b19defc2
commit
5c81896e06
1 changed files with 2 additions and 3 deletions
5
stdarg.h
5
stdarg.h
|
@ -4,9 +4,8 @@
|
||||||
typedef char *va_list;
|
typedef char *va_list;
|
||||||
|
|
||||||
/* only correct for i386 */
|
/* only correct for i386 */
|
||||||
/* XXX: incorrect for type size different than 4 bytes*/
|
#define va_start(ap,last) ap = ((char *)&(last)) + ((sizeof(last)+3)&~3)
|
||||||
#define va_start(ap,last) ap = ((char *)&(last)) + sizeof(int);
|
#define va_arg(ap,type) (ap += (sizeof(type)+3)&~3, *(type *)(ap - ((sizeof(type)+3)&~3)))
|
||||||
#define va_arg(ap,type) (ap += sizeof(int), *(type *)(ap - sizeof(int)))
|
|
||||||
#define va_end(ap)
|
#define va_end(ap)
|
||||||
|
|
||||||
/* fix a buggy dependency on GCC in libio.h */
|
/* fix a buggy dependency on GCC in libio.h */
|
||||||
|
|
Loading…
Reference in a new issue