diff options
Diffstat (limited to 'contrib/gcc/doprint.c')
-rw-r--r-- | contrib/gcc/doprint.c | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/contrib/gcc/doprint.c b/contrib/gcc/doprint.c index dc36254..2dc4dde 100644 --- a/contrib/gcc/doprint.c +++ b/contrib/gcc/doprint.c @@ -1,16 +1,25 @@ /* Provide a version _doprnt in terms of fprintf. - By Kaveh Ghazi (ghazi@caip.rutgers.edu) 3/29/98 Copyright (C) 1998 Free Software Foundation, Inc. + Contributed by Kaveh Ghazi (ghazi@caip.rutgers.edu) 3/29/98 + +This program is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 2, or (at your option) any +later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + */ #include "config.h" -#ifdef __STDC__ -#include <stdarg.h> -#else -#include <varargs.h> -#endif #include "system.h" -#include "gansidecl.h" #undef _doprnt #ifdef TEST /* Make sure to use the internal one. */ @@ -205,13 +214,13 @@ checkit VPROTO ((const char* format, ...)) va_list args; int result; -#ifndef __STDC__ +#ifndef ANSI_PROTOTYPES char *format; #endif VA_START (args, format); -#ifndef __STDC__ +#ifndef ANSI_PROTOTYPES format = va_arg (args, char *); #endif |