diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ChangeLog | 5 | ||||
| -rw-r--r-- | lib/system.h | 5 | ||||
| -rw-r--r-- | lib/xstrndup.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index 8cac7afb..82c009e4 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2017-04-27 Ulf Hermann <[email protected]> + + * system.h: Drop mempcpy replacement. + * xstrndup.c: Don't include system.h. + 2017-04-20 Ulf Hermann <[email protected]> * crc32.c: include config.h. diff --git a/lib/system.h b/lib/system.h index 92033355..ffa2bc70 100644 --- a/lib/system.h +++ b/lib/system.h @@ -63,11 +63,6 @@ #define powerof2(x) (((x) & ((x) - 1)) == 0) #endif -#if !HAVE_DECL_MEMPCPY -#define mempcpy(dest, src, n) \ - ((void *) ((char *) memcpy (dest, src, n) + (size_t) n)) -#endif - /* A special gettext function we use if the strings are too short. */ #define sgettext(Str) \ ({ const char *__res = strrchr (gettext (Str), '|'); \ diff --git a/lib/xstrndup.c b/lib/xstrndup.c index a257aa9a..d43e3b9e 100644 --- a/lib/xstrndup.c +++ b/lib/xstrndup.c @@ -33,7 +33,7 @@ #include <stdint.h> #include <string.h> #include "libeu.h" -#include "system.h" + /* Return a newly allocated copy of STRING. */ char * |
