Provide lint wrappers around the va_* defs like other ports do so this can
make it through lint (was dying in libpam)
This commit is contained in:
parent
870f206724
commit
3fed402d23
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: stdarg.h,v 1.2 2003/08/07 16:27:52 agc Exp $ */
|
/* $NetBSD: stdarg.h,v 1.3 2005/02/03 23:45:37 jmc Exp $ */
|
||||||
|
|
||||||
/* $OpenBSD: stdarg.h,v 1.2 1998/11/23 03:28:23 mickey Exp $ */
|
/* $OpenBSD: stdarg.h,v 1.2 1998/11/23 03:28:23 mickey Exp $ */
|
||||||
|
|
||||||
@ -38,11 +38,19 @@
|
|||||||
|
|
||||||
typedef double *va_list;
|
typedef double *va_list;
|
||||||
|
|
||||||
|
#ifdef __lint__
|
||||||
|
|
||||||
|
#define va_start(ap, last) ((ap) = *(va_list *)0)
|
||||||
|
#define va_arg(ap, type) (*(type *)(void *)&(ap))
|
||||||
|
#define va_end(ap)
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#define va_start(ap,lastarg) ((ap) = (va_list)__builtin_saveregs())
|
#define va_start(ap,lastarg) ((ap) = (va_list)__builtin_saveregs())
|
||||||
#else
|
#else
|
||||||
#define va_start(ap,lastarg) __builtin_va_start(ap, &lastarg)
|
#define va_start(ap,lastarg) __builtin_va_start(ap, &lastarg)
|
||||||
#endif
|
#endif /* __GNUC__ */
|
||||||
|
|
||||||
#define va_arg(ap,type) \
|
#define va_arg(ap,type) \
|
||||||
(sizeof(type) > 8 ? \
|
(sizeof(type) > 8 ? \
|
||||||
@ -54,4 +62,6 @@ typedef double *va_list;
|
|||||||
|
|
||||||
#define va_end(ap)
|
#define va_end(ap)
|
||||||
|
|
||||||
|
#endif /* __lint__ */
|
||||||
|
|
||||||
#endif /* !_HPPA_STDARG_H */
|
#endif /* !_HPPA_STDARG_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user