summaryrefslogtreecommitdiff
path: root/sys/arch/arm/include/stdarg.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-11-24 20:49:45 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-11-24 20:49:45 +0000
commit29158a9e559251bae337c673f5a249e9b24e5898 (patch)
treea720925e6587799f935354f2cfb52a5795d50daf /sys/arch/arm/include/stdarg.h
parente57fb6ec1e4015766ccee169f8cfad54c6933686 (diff)
remove __GNUC_PREREQ__(2, 96) block because lint pukes; idea for solution from miod
Diffstat (limited to 'sys/arch/arm/include/stdarg.h')
-rw-r--r--sys/arch/arm/include/stdarg.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/arch/arm/include/stdarg.h b/sys/arch/arm/include/stdarg.h
index d91cd3abce1..4203558ad70 100644
--- a/sys/arch/arm/include/stdarg.h
+++ b/sys/arch/arm/include/stdarg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdarg.h,v 1.2 2005/01/02 19:52:36 drahn Exp $ */
+/* $OpenBSD: stdarg.h,v 1.3 2005/11/24 20:49:44 deraadt Exp $ */
/* $NetBSD: stdarg.h,v 1.7 2003/08/07 16:26:53 agc Exp $ */
/*
@@ -46,26 +46,10 @@ typedef _BSD_VA_LIST_ va_list;
#define __builtin_va_copy(d, s) ((d) = (s))
#endif
-#if __GNUC_PREREQ__(2, 96)
#define va_start(ap, last) __builtin_stdarg_start((ap), (last))
#define va_arg __builtin_va_arg
#define va_end __builtin_va_end
#define __va_copy(dest, src) __builtin_va_copy((dest), (src))
-#else
-#define __va_size(type) \
- (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
-
-#define va_start(ap, last) \
- ((ap) = (va_list)__builtin_next_arg(last))
-
-#define va_arg(ap, type) \
- ((type *)(ap += sizeof(type)))[-1]
-
-#define va_end(ap)
-
-#define __va_copy(dest, src) ((dest) = (src))
-
-#endif /* __GNUC_PREREQ__(2, 96) */
#if !defined(_ANSI_SOURCE) && \
(defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \