timegm on mingw

2010-04-03 Thread Bruno Haible
]) 2010-04-03 Bruno Haible br...@clisp.org timegm: Fix C++ test error on mingw. * lib/time.in.h (timegm): Use modern idiom. * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1. * m4/time_h.m4

Re: timegm on mingw

2010-04-03 Thread Jim Meyering
Bruno Haible wrote: A similar error for timegm, in the C++ tests on mingw: ../gllib/time.h:448: error: `timegm' was not declared in this scope Again, we need to distinguish the case of a missing function from the case of a broken function. m4/time_h.m4 contains some dubious code: If