blob: a52889d824995552b9202aef5729ee39afbee445 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/* STDARG.H -- Interface to the Unix variable argument-list interface.
* This version replaces <varargs.h>, but is NOT backwards compatible.
*
* We pick up the local UNIX definitions for dealing with a variable
* number of arguments. This is done via indirection through this file so
* that any problems can be dealt with by changing only this file.
*
* Usage: Include this file using import_stdarg. If USE_STDARG is
* defined use the stdarg interface, otherwise use the varargs
* interface (ifdef the code accordingly). Old code which uses
* varargs directly is unaffected.
*/
#ifndef D_stdarg
#ifdef MACOSX
#include "stdarg-osx.h"
#else
#ifdef __CYGWIN__
#include "stdarg-cygwin.h"
#else
#ifdef LINUX
#include "stdarg-linux.h"
#else
#ifdef SOLARIS
#include "stdarg-solaris.h"
#else
#ifdef BSD
#include "stdarg-freebsd.h"
#else
#include <stdarg.h>
#endif
#endif
#endif
#endif
#endif
#define D_stdarg
#endif
|