diff options
| author | Paul Eggert | 1997-09-30 18:13:00 +0000 |
|---|---|---|
| committer | Paul Eggert | 1997-09-30 18:13:00 +0000 |
| commit | ffa0434b9d90991cd7c1324c4edf4a33d5ae4c8f (patch) | |
| tree | a36f223a325e53b8031775c1e7c447674bb273ae | |
| parent | f3b330d6d810be33ddf73e1b5375b602e086497b (diff) | |
| download | emacs-ffa0434b9d90991cd7c1324c4edf4a33d5ae4c8f.tar.gz emacs-ffa0434b9d90991cd7c1324c4edf4a33d5ae4c8f.zip | |
automatically generated from GPLed version
| -rw-r--r-- | src/strftime.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/strftime.c b/src/strftime.c index fc0c539c669..711529e72b3 100644 --- a/src/strftime.c +++ b/src/strftime.c | |||
| @@ -36,6 +36,10 @@ | |||
| 36 | # include "../locale/localeinfo.h" | 36 | # include "../locale/localeinfo.h" |
| 37 | #endif | 37 | #endif |
| 38 | 38 | ||
| 39 | #if defined emacs && !defined HAVE_BCOPY | ||
| 40 | # define HAVE_MEMCPY 1 | ||
| 41 | #endif | ||
| 42 | |||
| 39 | #include <ctype.h> | 43 | #include <ctype.h> |
| 40 | #include <sys/types.h> /* Some systems define `time_t' here. */ | 44 | #include <sys/types.h> /* Some systems define `time_t' here. */ |
| 41 | 45 | ||
| @@ -140,6 +144,7 @@ extern char *tzname[]; | |||
| 140 | # if ! HAVE_LOCALTIME_R | 144 | # if ! HAVE_LOCALTIME_R |
| 141 | # if ! HAVE_TM_GMTOFF | 145 | # if ! HAVE_TM_GMTOFF |
| 142 | /* Approximate gmtime_r as best we can in its absence. */ | 146 | /* Approximate gmtime_r as best we can in its absence. */ |
| 147 | # undef gmtime_r | ||
| 143 | # define gmtime_r my_gmtime_r | 148 | # define gmtime_r my_gmtime_r |
| 144 | static struct tm *gmtime_r __P ((const time_t *, struct tm *)); | 149 | static struct tm *gmtime_r __P ((const time_t *, struct tm *)); |
| 145 | static struct tm * | 150 | static struct tm * |
| @@ -156,6 +161,7 @@ gmtime_r (t, tp) | |||
| 156 | # endif /* ! HAVE_TM_GMTOFF */ | 161 | # endif /* ! HAVE_TM_GMTOFF */ |
| 157 | 162 | ||
| 158 | /* Approximate localtime_r as best we can in its absence. */ | 163 | /* Approximate localtime_r as best we can in its absence. */ |
| 164 | # undef localtime_r | ||
| 159 | # define localtime_r my_ftime_localtime_r | 165 | # define localtime_r my_ftime_localtime_r |
| 160 | static struct tm *localtime_r __P ((const time_t *, struct tm *)); | 166 | static struct tm *localtime_r __P ((const time_t *, struct tm *)); |
| 161 | static struct tm * | 167 | static struct tm * |
| @@ -329,7 +335,7 @@ tm_diff (a, b) | |||
| 329 | #define YDAY_MINIMUM (-366) | 335 | #define YDAY_MINIMUM (-366) |
| 330 | static int iso_week_days __P ((int, int)); | 336 | static int iso_week_days __P ((int, int)); |
| 331 | #ifdef __GNUC__ | 337 | #ifdef __GNUC__ |
| 332 | inline | 338 | __inline__ |
| 333 | #endif | 339 | #endif |
| 334 | static int | 340 | static int |
| 335 | iso_week_days (yday, wday) | 341 | iso_week_days (yday, wday) |