/* vim: set filetype=c:
 *
 * stdarg.h86  -  Variable argument definitions for GCC
 *
 * Copyright (C) 2003-2007 Gero Kuhlmann   <gero@gkminix.han.de>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * $Id: stdarg.h86,v 1.6 2007/01/06 18:30:54 gkminix Exp $
 */


#ifndef I386_STDARG_H86
#define I386_STDARG_H86



/*
 **************************************************************************
 *
 * This file can not be included into assembler source
 */
#ifndef _ASSEMBLY_

#include <common.h86>



/*
 **************************************************************************
 *
 * Because we are sure to use GCC for compilation we can simply map the
 * builtin functions and data types to the standard names.
 */

typedef __builtin_va_list va_list;

#define va_start(v,l)	__builtin_stdarg_start((v),l)
#define va_end		__builtin_va_end
#define va_arg		__builtin_va_arg
#define va_copy(d,s)	__builtin_va_copy((d),(s))


#endif /* _ASSEMBLY_ */

#endif

