summaryrefslogtreecommitdiff
path: root/libio/wscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/wscanf.c')
-rw-r--r--libio/wscanf.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/libio/wscanf.c b/libio/wscanf.c
index c8cdad0acd..540fbc9016 100644
--- a/libio/wscanf.c
+++ b/libio/wscanf.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2018 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2019 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
@@ -13,7 +13,12 @@
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
+ <https://www.gnu.org/licenses/>. */
+
+/* This file defines one of the deprecated scanf variants. */
+#include <features.h>
+#undef __GLIBC_USE_DEPRECATED_SCANF
+#define __GLIBC_USE_DEPRECATED_SCANF 1
#include <libioP.h>
#include <stdarg.h>
@@ -30,7 +35,7 @@ __wscanf (const wchar_t *format, ...)
int done;
va_start (arg, format);
- done = _IO_vfwscanf (stdin, format, arg, NULL);
+ done = __vfwscanf_internal (stdin, format, arg, 0);
va_end (arg);
return done;