1#ifndef _COMPAT_VA_COPY_H_INCLUDED_
2#define _COMPAT_VA_COPY_H_INCLUDED_
3
4/*++
5/* NAME
6/*	compat_va_copy 3h
7/* SUMMARY
8/*	compatibility
9/* SYNOPSIS
10/*	#include <compat_va_copy.h>
11/* DESCRIPTION
12/* .nf
13
14 /*
15  * C99 defines va_start and va_copy as macros, so we can probe the
16  * compilation environment with #ifdef etc. Some environments define
17  * __va_copy so we probe for that, too.
18  */
19#if !defined(va_start)
20#error "include <stdarg.h> first"
21#endif
22
23#if !defined(VA_COPY)
24#if defined(va_copy)
25#define VA_COPY(dest, src) va_copy(dest, src)
26#elif defined(__va_copy)
27#define VA_COPY(dest, src) __va_copy(dest, src)
28#else
29#define VA_COPY(dest, src) (dest) = (src)
30#endif
31#endif					/* VA_COPY */
32
33/* LICENSE
34/* .ad
35/* .fi
36/*	The Secure Mailer license must be distributed with this software.
37/* AUTHOR(S)
38/*	Wietse Venema
39/*	IBM T.J. Watson Research
40/*	P.O. Box 704
41/*	Yorktown Heights, NY 10598, USA
42/*--*/
43
44#endif
45