--- a/lib/stdio.in.h
+++ b/lib/stdio.in.h
-@@ -816,14 +816,6 @@ _GL_WARN_ON_USE (getline, "getline is un
+@@ -835,14 +835,6 @@ _GL_WARN_ON_USE (getline, "getline is un
# endif
#endif
-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
-#endif
-
- #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
- struct obstack;
- /* Grow an obstack with formatted output. Return the number of
+ #if defined _WIN32 && !defined __CYGWIN__
+ # undef getw
+ # define getw _getw