Testing - fix bugs in fsx related to 64-bit systems.
[dragonfly.git] / contrib / tcp_wrappers / mystdarg.h
blob36bdf696f1a5892af378752ad5667e8548b7215c
2 /*
3 * What follows is an attempt to unify varargs.h and stdarg.h. I'd rather
4 * have this than #ifdefs all over the code.
5 */
7 #ifdef __STDC__
8 #include <stdarg.h>
9 #define VARARGS(func,type,arg) func(type arg, ...)
10 #define VASTART(ap,type,name) va_start(ap,name)
11 #define VAEND(ap) va_end(ap)
12 #else
13 #include <varargs.h>
14 #define VARARGS(func,type,arg) func(va_alist) va_dcl
15 #define VASTART(ap,type,name) {type name; va_start(ap); name = va_arg(ap, type)
16 #define VAEND(ap) va_end(ap);}
17 #endif
19 extern char *percent_m();