aboutsummaryrefslogtreecommitdiff
path: root/unix/hlib/libc/stdarg.h
diff options
context:
space:
mode:
Diffstat (limited to 'unix/hlib/libc/stdarg.h')
-rw-r--r--unix/hlib/libc/stdarg.h40
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