diff options
author | Andrew Innes <andrewi@gnu.org> | 2000-10-20 14:48:58 +0000 |
---|---|---|
committer | Andrew Innes <andrewi@gnu.org> | 2000-10-20 14:48:58 +0000 |
commit | b542b5d068c0bd0b103b786f289a88d78e6d9641 (patch) | |
tree | 8c7aef7d5036bc94d64b5ec7be9bcdbd1f254cc8 /src/strftime.c | |
parent | c58921535d235acfbd7944522427da8e203c189e (diff) | |
download | emacs-b542b5d068c0bd0b103b786f289a88d78e6d9641.tar.gz |
[!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
Windows.
(my_strftime) <macro>: Don't use macro arg list when redefining as
_strftime_copytm.
(my_strftime) <function>: Supply 0 as ut argument.
Diffstat (limited to 'src/strftime.c')
-rw-r--r-- | src/strftime.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/strftime.c b/src/strftime.c index ef7189e6dda..f6e88e92a72 100644 --- a/src/strftime.c +++ b/src/strftime.c @@ -441,7 +441,7 @@ static CHAR_T const month_name[][10] = # define ut 0 #endif -#if !defined _LIBC && HAVE_TZNAME && HAVE_TZSET +#if !defined _LIBC && !defined(WINDOWSNT) && HAVE_TZNAME && HAVE_TZSET /* Solaris 2.5 tzset sometimes modifies the storage returned by localtime. Work around this bug by copying *tp before it might be munged. */ size_t _strftime_copytm __P ((char *, size_t, const char *, @@ -459,8 +459,7 @@ static CHAR_T const month_name[][10] = return _strftime_copytm (s, maxsize, format, &tmcopy ut_argument); } # undef my_strftime -# define my_strftime(S, Maxsize, Format, Tp) \ - _strftime_copytm (S, Maxsize, Format, Tp) +# define my_strftime _strftime_copytm #endif @@ -804,8 +803,8 @@ my_strftime (s, maxsize, format, tp ut_argument) subformat: { CHAR_T *old_start = p; - size_t len = my_strftime (NULL, (size_t) -1, subfmt, tp); - add (len, my_strftime (p, maxsize - i, subfmt, tp)); + size_t len = my_strftime (NULL, (size_t) -1, subfmt, tp, 0); + add (len, my_strftime (p, maxsize - i, subfmt, tp, 0)); if (to_uppcase) while (old_start < p) |