aboutsummaryrefslogtreecommitdiff
path: root/gcc/doprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/doprint.c')
-rw-r--r--gcc/doprint.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/gcc/doprint.c b/gcc/doprint.c
index e09e1988122..2dc4ddef976 100644
--- a/gcc/doprint.c
+++ b/gcc/doprint.c
@@ -1,11 +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"
#include "system.h"
-#include "gansidecl.h"
#undef _doprnt
#ifdef TEST /* Make sure to use the internal one. */
@@ -200,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