blob: 944dac3759a88ada932c38215cfe2e94b1388c01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/* $NetBSD: stdarg.h,v 1.6 2003/04/28 23:16:23 bjh21 Exp $ */
#ifndef _SH3_STDARG_H_
#define _SH3_STDARG_H_
#ifdef __lint__
#include <machine/ansi.h>
typedef _BSD_VA_LIST_ va_list; /* XXX */
#define va_start(a, l) ((a) = ((l) ? 0 : 0))
#define va_arg(a, t) ((a) ? (t)0 : (t)0)
#define va_end(a) /* nothing */
#define __va_copy(d, s) ((d) = (s))
#else /* ! __lint__ */
#ifndef _VARARGS_H
#define _STDARG_H
#endif
#include <sh3/va-sh.h>
#include <sys/featuretest.h>
typedef __gnuc_va_list va_list;
#endif /* __lint__ */
#if !defined(_ANSI_SOURCE) && \
(defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \
defined(_NETBSD_SOURCE))
#define va_copy __va_copy
#endif
#endif /* _SH3_STDARG_H_ */
|