66 lines
1.6 KiB
C
66 lines
1.6 KiB
C
/*
|
|
* varargs.h Variable argument macros (UNIX System V definition)
|
|
* definitions for use with variable argument lists
|
|
*
|
|
* =========================================================================
|
|
*
|
|
* Open Watcom Project
|
|
*
|
|
* Copyright (c) 2002-2010 Open Watcom Contributors. All Rights Reserved.
|
|
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
|
|
*
|
|
* This file is automatically generated. Do not edit directly.
|
|
*
|
|
* =========================================================================
|
|
*/
|
|
#ifndef _VARARGS_H_INCLUDED
|
|
#define _VARARGS_H_INCLUDED
|
|
|
|
#ifndef _ENABLE_AUTODEPEND
|
|
#pragma read_only_file;
|
|
#endif
|
|
|
|
#ifndef _COMDEF_H_INCLUDED
|
|
#include <_comdef.h>
|
|
#endif
|
|
|
|
#ifndef _STDARG_H_INCLUDED
|
|
#include <stdarg.h>
|
|
#else
|
|
#error stdarg.h has already been included
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#undef va_start
|
|
|
|
#if defined(__PPC__)
|
|
extern void *__builtin_va_start(va_list*, ...);
|
|
#pragma intrinsic(__builtin_va_start);
|
|
#define va_alist void *__alist, ...
|
|
#define va_dcl
|
|
#define va_start(ap) (__builtin_va_start(&ap,__alist,0))
|
|
#elif defined(__AXP__)
|
|
extern void *__builtin_va_start(va_list*, ...);
|
|
#pragma intrinsic(__builtin_va_start);
|
|
#define va_alist void *__alist, ...
|
|
#define va_dcl
|
|
#define va_start(ap) (__builtin_va_start(&ap,__alist,0))
|
|
#else
|
|
#define va_alist void *__alist, ...
|
|
#define va_dcl
|
|
#if defined(__HUGE__) || defined(__SW_ZU)
|
|
#define va_start(ap) ((ap)[0]=(char _WCFAR*)&__alist,(void)0)
|
|
#else
|
|
#define va_start(ap) ((ap)[0]=(char *)&__alist,(void)0)
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif
|