1178172Simp/*	$NetBSD: varargs.h,v 1.16 1999/01/22 14:19:54 mycroft Exp $	*/
2178172Simp
3178172Simp/*-
4178172Simp * Copyright (c) 1992, 1993
5178172Simp *	The Regents of the University of California.  All rights reserved.
6178172Simp * (c) UNIX System Laboratories, Inc.
7178172Simp * All or some portions of this file are derived from material licensed
8178172Simp * to the University of California by American Telephone and Telegraph
9178172Simp * Co. or Unix System Laboratories, Inc. and are reproduced herein with
10178172Simp * the permission of UNIX System Laboratories, Inc.
11178172Simp *
12178172Simp * Redistribution and use in source and binary forms, with or without
13178172Simp * modification, are permitted provided that the following conditions
14178172Simp * are met:
15178172Simp * 1. Redistributions of source code must retain the above copyright
16178172Simp *    notice, this list of conditions and the following disclaimer.
17178172Simp * 2. Redistributions in binary form must reproduce the above copyright
18178172Simp *    notice, this list of conditions and the following disclaimer in the
19178172Simp *    documentation and/or other materials provided with the distribution.
20178172Simp * 4. Neither the name of the University nor the names of its contributors
21178172Simp *    may be used to endorse or promote products derived from this software
22178172Simp *    without specific prior written permission.
23178172Simp *
24178172Simp * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25178172Simp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26178172Simp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27178172Simp * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28178172Simp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29178172Simp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30178172Simp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31178172Simp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32178172Simp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33178172Simp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34178172Simp * SUCH DAMAGE.
35178172Simp *
36178172Simp *	@(#)varargs.h	8.2 (Berkeley) 3/22/94
37178172Simp *	JNPR: varargs.h,v 1.1 2006/08/07 05:38:57 katta
38178172Simp * $FreeBSD$
39178172Simp */
40178172Simp
41178172Simp#ifndef _MIPS_VARARGS_H_
42178172Simp#define	_MIPS_VARARGS_H_
43178172Simp
44178172Simp#include <machine/stdarg.h>
45178172Simp
46178172Simp#if __GNUC__ == 1
47178172Simp#define	__va_ellipsis
48178172Simp#else
49178172Simp#define	__va_ellipsis	...
50178172Simp#endif
51178172Simp
52178172Simp#define	va_alist	__builtin_va_alist
53178172Simp#define	va_dcl		long __builtin_va_alist; __va_ellipsis
54178172Simp
55178172Simp#undef va_start
56178172Simp#define	va_start(ap) \
57178172Simp	((ap) = (va_list)&__builtin_va_alist)
58178172Simp
59178172Simp#endif /* !_MIPS_VARARGS_H_ */
60