mktime: merge DEBUG change from gnulib

This commit is contained in:
Paul Eggert 2012-05-22 06:09:01 -07:00 committed by H.J. Lu
parent bd83aabe5a
commit 826dd0abdf
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2012-05-22 Paul Eggert <eggert@cs.ucla.edu>
mktime: merge DEBUG change from gnulib
* time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
case system <time.h> has a #define.
mktime: merge <sys/types.h> change from gnulib
* time/mktime.c: Do not include <sys/types.h>; no longer needed,
since <time.t> is now guaranteed to define time_t.

View File

@ -42,6 +42,7 @@
# include <stdio.h>
# include <stdlib.h>
/* Make it work even if the system's libc has its own mktime routine. */
# undef mktime
# define mktime my_mktime
#endif /* DEBUG */