diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-09 03:07:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-09 03:07:54 +0000 |
commit | 96af28e70eca24e66067eae1b00cfc51a58c9513 (patch) | |
tree | 4b9535df01b30ad946f08248b98da0b67c641e54 /sys/arch/m88k | |
parent | 64c374962577b0b1efc3c9c7d82a1111f5313f5b (diff) |
#ifdef lint wraps for va_start
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r-- | sys/arch/m88k/include/va-m88k.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/arch/m88k/include/va-m88k.h b/sys/arch/m88k/include/va-m88k.h index 3b9665803c0..ffe4c857416 100644 --- a/sys/arch/m88k/include/va-m88k.h +++ b/sys/arch/m88k/include/va-m88k.h @@ -1,4 +1,4 @@ -/* $OpenBSD: va-m88k.h,v 1.8 2006/01/06 18:53:05 millert Exp $ */ +/* $OpenBSD: va-m88k.h,v 1.9 2006/04/09 03:07:53 deraadt Exp $ */ /* Define __gnuc_va_list. */ @@ -29,12 +29,21 @@ __extension__ ({ \ /* Calling __builtin_next_arg gives the proper error message if LASTARG is not indeed the last argument. */ +#ifdef lint +#define va_start(AP,LASGARG) ((AP) = (AP)) +#else #define va_start(AP,LASTARG) \ (__builtin_next_arg (LASTARG), __va_start_common (AP, 0)) +#endif /* lint */ #else /* varargs.h support */ +#ifdef lint +#define va_start(AP) ((AP) = (AP)) +#else #define va_start(AP) __va_start_common (AP, 1) +#endif /* lint */ + #define va_alist __va_1st_arg #define va_dcl register int va_alist; ... |