1*433d6423SLionel Sambuc /* $NetBSD: varargs.h,v 1.3 2008/04/28 20:22:54 martin Exp $ */ 2*433d6423SLionel Sambuc 3*433d6423SLionel Sambuc /*- 4*433d6423SLionel Sambuc * Copyright (c) 2003 The NetBSD Foundation, Inc. 5*433d6423SLionel Sambuc * All rights reserved. 6*433d6423SLionel Sambuc * 7*433d6423SLionel Sambuc * This code is derived from software contributed to The NetBSD Foundation 8*433d6423SLionel Sambuc * by Matthias Scheler. 9*433d6423SLionel Sambuc * 10*433d6423SLionel Sambuc * Redistribution and use in source and binary forms, with or without 11*433d6423SLionel Sambuc * modification, are permitted provided that the following conditions 12*433d6423SLionel Sambuc * are met: 13*433d6423SLionel Sambuc * 1. Redistributions of source code must retain the above copyright 14*433d6423SLionel Sambuc * notice, this list of conditions and the following disclaimer. 15*433d6423SLionel Sambuc * 2. Redistributions in binary form must reproduce the above copyright 16*433d6423SLionel Sambuc * notice, this list of conditions and the following disclaimer in the 17*433d6423SLionel Sambuc * documentation and/or other materials provided with the distribution. 18*433d6423SLionel Sambuc * 19*433d6423SLionel Sambuc * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20*433d6423SLionel Sambuc * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21*433d6423SLionel Sambuc * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22*433d6423SLionel Sambuc * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23*433d6423SLionel Sambuc * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24*433d6423SLionel Sambuc * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25*433d6423SLionel Sambuc * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26*433d6423SLionel Sambuc * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27*433d6423SLionel Sambuc * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28*433d6423SLionel Sambuc * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29*433d6423SLionel Sambuc * POSSIBILITY OF SUCH DAMAGE. 30*433d6423SLionel Sambuc */ 31*433d6423SLionel Sambuc 32*433d6423SLionel Sambuc #ifndef _VARARGS_H_ 33*433d6423SLionel Sambuc #define _VARARGS_H_ 34*433d6423SLionel Sambuc 35*433d6423SLionel Sambuc #include <sys/cdefs.h> 36*433d6423SLionel Sambuc 37*433d6423SLionel Sambuc #if __GNUC_PREREQ__(3, 3) 38*433d6423SLionel Sambuc #error "GCC 3.3 and newer no longer implements <varargs.h>." 39*433d6423SLionel Sambuc #error "Revise your code to use <stdarg.h>." 40*433d6423SLionel Sambuc #else 41*433d6423SLionel Sambuc #include <machine/varargs.h> 42*433d6423SLionel Sambuc #endif 43*433d6423SLionel Sambuc 44*433d6423SLionel Sambuc #endif /* !_VARARGS_H_ */ 45*433d6423SLionel Sambuc 46