aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/sscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/sscanf.c')
-rw-r--r--stdio-common/sscanf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/stdio-common/sscanf.c b/stdio-common/sscanf.c
index a630fba..59caf8d 100644
--- a/stdio-common/sscanf.c
+++ b/stdio-common/sscanf.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 <libio/strfile.h>
@@ -34,6 +39,5 @@ __sscanf (const char *s, const char *format, ...)
return done;
}
-ldbl_hidden_def (__sscanf, sscanf)
ldbl_strong_alias (__sscanf, sscanf)
ldbl_strong_alias (__sscanf, _IO_sscanf)