summaryrefslogtreecommitdiffstats
path: root/sys/ia64/include/stdarg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ia64/include/stdarg.h')
-rw-r--r--sys/ia64/include/stdarg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/ia64/include/stdarg.h b/sys/ia64/include/stdarg.h
index df9725d..51dde80 100644
--- a/sys/ia64/include/stdarg.h
+++ b/sys/ia64/include/stdarg.h
@@ -38,9 +38,13 @@
#ifndef _MACHINE_STDARG_H_
#define _MACHINE_STDARG_H_
+#include <sys/cdefs.h>
#include <sys/_types.h>
+#ifndef _VA_LIST_DECLARED
+#define _VA_LIST_DECLARED
typedef __va_list va_list;
+#endif
#if defined(__GNUC__) && (__GNUC__ == 2 && __GNUC_MINOR__ > 95 || __GNUC__ >= 3)
@@ -50,8 +54,10 @@ typedef __va_list va_list;
#define va_arg(ap, type) \
__builtin_va_arg((ap), type)
+#if __ISO_C_VISIBLE >= 1999
#define va_copy(dest, src) \
__builtin_va_copy((dest), (src))
+#endif
#define va_end(ap) \
__builtin_va_end(ap)
OpenPOWER on IntegriCloud