ebdde0bc4b
The __builtin_va_###() intrinsics apply only to GCC-like compilers and MSVC's <stdarg.h> works just fine with gnu-efi. Without this patch, one has to define GNU_EFI_USE_EXTERNAL_STDARG to make gnu-efi work with a Microsoft toolchain, which is annoying...
34 lines
528 B
C
34 lines
528 B
C
#ifndef _EFISTDARG_H_
|
|
#define _EFISTDARG_H_
|
|
|
|
/*++
|
|
|
|
Copyright (c) 1998 Intel Corporation
|
|
|
|
Module Name:
|
|
|
|
devpath.h
|
|
|
|
Abstract:
|
|
|
|
Defines for parsing the EFI Device Path structures
|
|
|
|
|
|
|
|
Revision History
|
|
|
|
--*/
|
|
|
|
#if !defined(GNU_EFI_USE_EXTERNAL_STDARG) && !defined(_MSC_VER)
|
|
typedef __builtin_va_list va_list;
|
|
|
|
# define va_start(v,l) __builtin_va_start(v,l)
|
|
# define va_end(v) __builtin_va_end(v)
|
|
# define va_arg(v,l) __builtin_va_arg(v,l)
|
|
# define va_copy(d,s) __builtin_va_copy(d,s)
|
|
#else
|
|
# include <stdarg.h>
|
|
#endif
|
|
|
|
#endif
|