about summary refs log tree commit diff
path: root/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'stdio')
-rw-r--r--stdio/stdio.h1
-rw-r--r--stdio/vscanf.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/stdio/stdio.h b/stdio/stdio.h
index 38bfc148d7..47348a6576 100644
--- a/stdio/stdio.h
+++ b/stdio/stdio.h
@@ -439,6 +439,7 @@ extern int vfscanf __P ((FILE *__s, __const char *__format,
 			 __gnuc_va_list __arg));
 
 /* Read formatted input from stdin into argument list ARG.  */
+extern int __vscanf __P ((__const char *__format, __gnuc_va_list __arg));
 extern int vscanf __P ((__const char *__format, __gnuc_va_list __arg));
 
 /* Read formatted input from S into argument list ARG.  */
diff --git a/stdio/vscanf.c b/stdio/vscanf.c
index 0d829440e9..52cf690ec2 100644
--- a/stdio/vscanf.c
+++ b/stdio/vscanf.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1996 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -16,7 +16,6 @@ License along with the GNU C Library; see the file COPYING.LIB.  If
 not, write to the Free Software Foundation, Inc., 675 Mass Ave,
 Cambridge, MA 02139, USA.  */
 
-#include <ansidecl.h>
 #include <stdarg.h>
 #include <stdio.h>
 
@@ -26,7 +25,8 @@ Cambridge, MA 02139, USA.  */
 /* Read formatted input from stdin according to the format
    string in FORMAT, using the argument list in ARG.  */
 int
-DEFUN(vscanf, (format, arg), CONST char *format AND va_list arg)
+__vscanf (const char *format, va_list arg)
 {
   return vfscanf (stdin, format, arg);
 }
+weak_alias (__vscanf, vscanf)