+2019-11-24 Bruno Haible <bruno@clisp.org>
+
+ sys_time: Fix errors in C++ mode on mingw.
+ * lib/sys_time.in.h (timeval): Restore the redirection
+ '#define timeval rpl_timeval', for when the symbol timeval is being used
+ outside the 'gnulib' namespace.
+ * lib/sys_select.in.h (select): In C++, write 'timeval', not
+ 'struct timeval'.
+
2019-11-24 Bruno Haible <bruno@clisp.org>
iswctype: Fix errors in C++ mode on mingw.
struct timeval *restrict));
_GL_CXXALIAS_RPL (select, int,
(int, fd_set *restrict, fd_set *restrict, fd_set *restrict,
- struct timeval *restrict));
+ timeval *restrict));
# else
_GL_CXXALIAS_SYS (select, int,
(int, fd_set *restrict, fd_set *restrict, fd_set *restrict,
# if defined __cplusplus && defined GNULIB_NAMESPACE
namespace GNULIB_NAMESPACE {
typedef ::timeval
-#undef timeval
+# undef timeval
timeval;
+# if @REPLACE_STRUCT_TIMEVAL@
+# define timeval rpl_timeval
+ typedef ::timeval timeval;
+# endif
}
# endif
#elif defined GNULIB_POSIXCHECK