aboutsummaryrefslogtreecommitdiffstats
path: root/src/strftime.c
diff options
context:
space:
mode:
authorPaul Eggert1997-09-30 18:13:00 +0000
committerPaul Eggert1997-09-30 18:13:00 +0000
commitffa0434b9d90991cd7c1324c4edf4a33d5ae4c8f (patch)
treea36f223a325e53b8031775c1e7c447674bb273ae /src/strftime.c
parentf3b330d6d810be33ddf73e1b5375b602e086497b (diff)
downloademacs-ffa0434b9d90991cd7c1324c4edf4a33d5ae4c8f.tar.gz
emacs-ffa0434b9d90991cd7c1324c4edf4a33d5ae4c8f.zip
automatically generated from GPLed version
Diffstat (limited to 'src/strftime.c')
-rw-r--r--src/strftime.c8
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
144static struct tm *gmtime_r __P ((const time_t *, struct tm *)); 149static struct tm *gmtime_r __P ((const time_t *, struct tm *));
145static struct tm * 150static 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
160static struct tm *localtime_r __P ((const time_t *, struct tm *)); 166static struct tm *localtime_r __P ((const time_t *, struct tm *));
161static struct tm * 167static struct tm *
@@ -329,7 +335,7 @@ tm_diff (a, b)
329#define YDAY_MINIMUM (-366) 335#define YDAY_MINIMUM (-366)
330static int iso_week_days __P ((int, int)); 336static int iso_week_days __P ((int, int));
331#ifdef __GNUC__ 337#ifdef __GNUC__
332inline 338__inline__
333#endif 339#endif
334static int 340static int
335iso_week_days (yday, wday) 341iso_week_days (yday, wday)