summaryrefslogtreecommitdiffstats
path: root/sys/alpha/include/stdarg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/alpha/include/stdarg.h')
-rw-r--r--sys/alpha/include/stdarg.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/alpha/include/stdarg.h b/sys/alpha/include/stdarg.h
index b14b686..bd67f1f 100644
--- a/sys/alpha/include/stdarg.h
+++ b/sys/alpha/include/stdarg.h
@@ -36,12 +36,16 @@
* $FreeBSD$
*/
-#ifndef _ALPHA_STDARG_H_
-#define _ALPHA_STDARG_H_
+#ifndef _MACHINE_STDARG_H_
+#define _MACHINE_STDARG_H_
+#include <sys/cdefs.h>
#include <sys/_types.h>
-typedef __va_list va_list;
+#ifndef _VA_LIST_DECLARED
+#define _VA_LIST_DECLARED
+typedef __va_list va_list;
+#endif
#if defined(__GNUC__) && (__GNUC__ == 2 && __GNUC_MINOR__ > 95 || __GNUC__ >= 3)
@@ -51,8 +55,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)
@@ -83,4 +89,4 @@ typedef __va_list va_list;
#endif /* __GNUC__ post GCC 2.95 */
-#endif /* !_ALPHA_STDARG_H_ */
+#endif /* !_MACHINE_STDARG_H_ */
OpenPOWER on IntegriCloud