Print this page
remove support for non-ANSI compilation
*** 22,31 ****
--- 22,33 ----
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ *
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_VA_IMPL_H
*** 116,137 ****
#elif defined(__BUILTIN_VA_STRUCT) /* ------------------------ protocol */
/* ISA __va_list structures defined in <sys/va_list.h> */
- #if defined(__STDC__) /* source language is ISO C or C++ */
-
void __builtin_va_start(__va_list, ...);
void *__builtin_va_arg_incr(__va_list, ...);
- #else /* source language is K&R C */
-
- int __builtin_va_start();
- char *__builtin_va_arg_incr();
-
- #endif /* source language */
-
#define __va_start(list, name) __builtin_va_start(list, 0)
#define __va_arg(list, type) \
((type *)__builtin_va_arg_incr(list, (type *)0))[0]
#define __va_copy(to, from) __va_void(((to)[0] = (from)[0]))
#define __va_end(list) __va_void(0)
--- 118,130 ----