1119630Skan/*-
2119630Skan * Copyright (c) 2003 Alexander Kabaev
3119630Skan * All rights reserved.
4119630Skan *
5119630Skan * Redistribution and use in source and binary forms, with or without
6119630Skan * modification, are permitted provided that the following conditions
7119630Skan * are met:
8119630Skan * 1. Redistributions of source code must retain the above copyright
9119630Skan *    notice, this list of conditions and the following disclaimer.
10119630Skan * 2. Redistributions in binary form must reproduce the above copyright
11119630Skan *    notice, this list of conditions and the following disclaimer in the
12119630Skan *    documentation and/or other materials provided with the distribution.
13119630Skan *
14119630Skan * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15119630Skan * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16119630Skan * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17119630Skan * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18119630Skan * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19119630Skan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20119630Skan * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21119630Skan * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22119630Skan * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23119630Skan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24119630Skan * SUCH DAMAGE.
25119630Skan *
26119630Skan * $FreeBSD$
27119630Skan */
28119630Skan
29119630Skan#ifndef _VARARGS_H_
30119630Skan#define	_VARARGS_H_
31119630Skan
32119630Skan#if defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ > 2 || __GNUC__ >= 4)
33119630Skan
34119630Skan#error "<varargs.h> is obsolete with this version of GCC."
35119630Skan#error "Change your code to use <stdarg.h> instead."
36119630Skan
37119630Skan#else	/* ! __GNUC__ post GCC 3.3 */
38119630Skan
39119630Skan#include <machine/varargs.h>
40119630Skan
41119630Skan#endif /* __GNUC__ post GCC 3.3 */
42119630Skan
43119630Skan#endif /* !_VARARGS_H_ */
44