* lib/localtime-buffer.c: Undefine localtime and gmtime before use.
+2018-12-13 Bruno Haible <bruno@clisp.org>
+
+ localtime-buffer: Avoid endless recursion in localtime and gmtime.
+ * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
+
2018-12-13 Bruno Haible <bruno@clisp.org>
localeconv tests: Avoid test failure on Cygwin.
struct tm *
rpl_localtime (time_t const *timep)
+#undef localtime
{
struct tm *tm = localtime (timep);
/* Same as above, since gmtime and localtime use the same buffer. */
struct tm *
rpl_gmtime (time_t const *timep)
+#undef gmtime
{
struct tm *tm = gmtime (timep);