diff options
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/dvipsk/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/dvipsk/output.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog index 51a8810dcf3..c70441cc79a 100644 --- a/Build/source/texk/dvipsk/ChangeLog +++ b/Build/source/texk/dvipsk/ChangeLog @@ -1,5 +1,9 @@ 2016-10-30 Karl Berry <karl@tug.org> + * output.c (INVALID_EPOCH_VALUE): define as (time_t) -1, + to avoid warning with huge unsigned value on 32-bit systems. + (open_output): don't duplicate writing of %%CreationDate. + * dvips.texi (Invoking Dvips): TEXCONFIG does not include . by default. diff --git a/Build/source/texk/dvipsk/output.c b/Build/source/texk/dvipsk/output.c index fa57daaa1a1..14615db3eeb 100644 --- a/Build/source/texk/dvipsk/output.c +++ b/Build/source/texk/dvipsk/output.c @@ -90,7 +90,7 @@ static time_t jobtime; #define strtoll _strtoi64 #endif -#define INVALID_EPOCH_VALUE 0x7fffffffffffffffULL +#define INVALID_EPOCH_VALUE ((time_t) -1) static time_t get_unique_time_if_given(void) @@ -1421,12 +1421,8 @@ initprinter(sectiontype *sect) jobtime = get_unique_time_if_given(); if (jobtime == INVALID_EPOCH_VALUE) { jobtime = time(0); - fprintf(bitfile, "%%%%CreationDate: %s", - asctime(localtime(&jobtime))); - } else { - fprintf(bitfile, "%%%%CreationDate: %s", - asctime(gmtime(&jobtime))); } + fprintf(bitfile, "%%%%CreationDate: %s", asctime(gmtime(&jobtime))); #endif if (! isepsf) { /* |