2018-08-31 Paul Eggert <eggert@cs.ucla.edu>
+ mktime, timegm: simplify glibc time64_t
+ * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
+ Now long int, not time_t, since long int is the longstanding type
+ for this in glibc and there is no need to change it even if time_t
+ becomes 64 bits - even int would do, though this would be a change
+ to the glibc generated code. When this change is merged into
+ glibc, it should simplify the time_t vs time64_t situation.
+
mktime, timegm: simplify merge to glibc
Move code around to make a merge to glibc easier to audit.
This should not change behavior.
#endif
#ifdef _LIBC
-typedef time_t mktime_offset_t;
+typedef long int mktime_offset_t;
#else
# include "mktime-internal.h"
#endif
#include <time.h>
#ifdef _LIBC
-typedef time_t mktime_offset_t;
+typedef long int mktime_offset_t;
#else
# include "mktime-internal.h"
#endif