summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2017-02-27 13:56:53 +0100
committerUlf Hermann <[email protected]>2017-04-28 09:17:21 +0000
commitffb6a77fc4f0533126a3ff49ec5c03ef8e674520 (patch)
treea2697a941141c6d55a11df8fbfee7275f3ef3a9c /lib
parent121d248c1da7f2130a2edde6d158f116c89ed407 (diff)
Drop handrolled or #ifdef'ed libc replacements
mempcpy, memrchr, rawmemchr, and argp are provided by gnulib now. We don't need to define them locally and we don't need to search for an external libargp. Change-Id: I131ca4bc2d77c597b99c296c28259a3600e5d1b5 Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog5
-rw-r--r--lib/system.h5
-rw-r--r--lib/xstrndup.c2
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 *