about summary refs log tree commit diff
path: root/libio/swscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/swscanf.c')
-rw-r--r--libio/swscanf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libio/swscanf.c b/libio/swscanf.c
index e38b938b0b..5f529ef630 100644
--- a/libio/swscanf.c
+++ b/libio/swscanf.c
@@ -15,6 +15,11 @@
    License along with the GNU C Library; if not, see
    <http://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 <stdarg.h>
 #include "strfile.h"