1/*	$NetBSD: efistdarg.h,v 1.4 2021/09/30 19:02:47 jmcneill Exp $	*/
2
3#ifndef _EFISTDARG_H_
4#define _EFISTDARG_H_
5
6/*++
7
8Copyright (c) 1998  Intel Corporation
9
10Module Name:
11
12    devpath.h
13
14Abstract:
15
16    Defines for parsing the EFI Device Path structures
17
18
19
20Revision History
21
22--*/
23
24#if !defined(GNU_EFI_USE_EXTERNAL_STDARG) && !defined(_MSC_VER)
25#ifdef __NetBSD__
26#include <sys/stdarg.h>
27#else
28typedef __builtin_va_list va_list;
29
30# define va_start(v,l)	__builtin_va_start(v,l)
31# define va_end(v)	__builtin_va_end(v)
32# define va_arg(v,l)	__builtin_va_arg(v,l)
33# define va_copy(d,s)	__builtin_va_copy(d,s)
34#endif
35#else
36# include <stdarg.h>
37#endif
38
39#endif
40