From 73d3dbd4e6ab70e29986e6d706b548cdc39c3531 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Fri, 19 May 1995 14:15:48 +0000 Subject: * utils.c, complaints.c, language.c, monitor.c, remote-array.c, remote-mips.c, remote-os9k.c, remote-st.c: Conditionalize use of stdarg rather than varargs on ANSI_PROTOTYPES not __STDC__; it must match the definition of PARAMS. start-sanitize-gdbtk * gdbtk.c: Likewise. end-sanitize-gdbtk --- gdb/language.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gdb/language.c') diff --git a/gdb/language.c b/gdb/language.c index 3c27b7d..f989cb2 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -29,7 +29,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "defs.h" #include -#ifdef __STDC__ +#ifdef ANSI_PROTOTYPES #include #else #include @@ -982,7 +982,7 @@ op_error (fmt,op,fatal) by the value of warning_pre_print and we do not return to the top level. */ void -#ifdef __STDC__ +#ifdef ANSI_PROTOTYPES type_error (char *string, ...) #else type_error (va_alist) @@ -990,7 +990,7 @@ type_error (va_alist) #endif { va_list args; -#ifdef __STDC__ +#ifdef ANSI_PROTOTYPES va_start (args, string); #else char *string; @@ -1011,7 +1011,7 @@ type_error (va_alist) } void -#ifdef __STDC__ +#ifdef ANSI_PROTOTYPES range_error (char *string, ...) #else range_error (va_alist) @@ -1019,7 +1019,7 @@ range_error (va_alist) #endif { va_list args; -#ifdef __STDC__ +#ifdef ANSI_PROTOTYPES va_start (args, string); #else char *string; -- cgit v1.1