diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /unix/hlib/libc/stdarg.h | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'unix/hlib/libc/stdarg.h')
-rw-r--r-- | unix/hlib/libc/stdarg.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/unix/hlib/libc/stdarg.h b/unix/hlib/libc/stdarg.h new file mode 100644 index 00000000..a52889d8 --- /dev/null +++ b/unix/hlib/libc/stdarg.h @@ -0,0 +1,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 |