Adding upstream version 6.03~pre1+dfsg.
[syslinux-debian/hramrach.git] / efi64 / include / efi / efistdarg.h
blob8a96b94f4b7bf0212b6276cf2f76fd28bd1a4c00
1 #ifndef _EFISTDARG_H_
2 #define _EFISTDARG_H_
4 /*++
6 Copyright (c) 1998 Intel Corporation
8 Module Name:
10 devpath.h
12 Abstract:
14 Defines for parsing the EFI Device Path structures
18 Revision History
20 --*/
21 #ifdef __GNUC__
22 #include "stdarg.h"
23 #else
24 #define _INTSIZEOF(n) ( (sizeof(n) + sizeof(UINTN) - 1) & ~(sizeof(UINTN) - 1) )
26 typedef CHAR8 * va_list;
28 #define va_start(ap,v) ( ap = (va_list)&v + _INTSIZEOF(v) )
29 #define va_arg(ap,t) ( *(t *)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)) )
30 #define va_end(ap) ( ap = (va_list)0 )
31 #endif
33 #endif /* _INC_STDARG */