[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs current-time-string core dump on 64-bit hosts
From: |
Richard Stallman |
Subject: |
Re: Emacs current-time-string core dump on 64-bit hosts |
Date: |
Sat, 01 Apr 2006 15:28:10 -0500 |
#ifndef TM_YEAR_IN_ASCTIME_RANGE
# define TM_YEAR_IN_ASCTIME_RANGE(tm_year) \
(1000 - 1900 <= (tm_year) && (tm_year) <= 9999 - 1900)
#endif
and then in s/gnu-linux.h and src/s/gnu.h we'd put this:
#define TM_YEAR_IN_ASCTIME_RANGE(tm_year) ((tm_year) <= INT_MAX - 1900)
I was thinking of something a little different, but this is fine too.
Is that the sort of thing you have in mind? If so, can you please
suggest where the generic definition of TM_YEAR_IN_ASCTIME_RANGE
should go?
Don't worry about it--just copy those 4 lines into each of the three
.c files.