diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-11-06 00:44:44 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-11-06 00:44:44 +0000 |
commit | b84e9dba50c23111d67ba7fe9814ee2b47751888 (patch) | |
tree | 7c16bb0307c8f74f6c6dc0ed8d96f3fe5dee2763 /src/strftime.c | |
parent | c067bb7721402d4ba5f893d0646710368fd59ba6 (diff) | |
download | emacs-b84e9dba50c23111d67ba7fe9814ee2b47751888.tar.gz |
automatically generated from GPLed version
Diffstat (limited to 'src/strftime.c')
-rw-r--r-- | src/strftime.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/strftime.c b/src/strftime.c index 51dbc389a75..7439244bc4d 100644 --- a/src/strftime.c +++ b/src/strftime.c @@ -91,6 +91,14 @@ extern char *tzname[]; # endif #endif +#ifdef _LIBC +# define MEMPCPY(d, s, n) __mempcpy (d, s, n) +#else +# ifndef HAVE_MEMPCPY +# define MEMPCPY(d, s, n) ((void *) ((char *) memcpy (d, s, n) + (n))) +# endif +#endif + #ifndef __P # if defined (__GNUC__) || (defined (__STDC__) && __STDC__) # define __P(args) args @@ -196,8 +204,7 @@ static const char zeroes[16] = /* "0000000000000000" */ do \ { \ int _this = _len > 16 ? 16 : _len; \ - memcpy ((P), spaces, _this); \ - (P) += _this; \ + (P) = mempcpy ((P), spaces, _this); \ _len -= _this; \ } \ while (_len > 0); \ @@ -210,8 +217,7 @@ static const char zeroes[16] = /* "0000000000000000" */ do \ { \ int _this = _len > 16 ? 16 : _len; \ - memcpy ((P), zeroes, _this); \ - (P) += _this; \ + (P) = mempcpy ((P), zeroes, _this); \ _len -= _this; \ } \ while (_len > 0); \ |