summaryrefslogtreecommitdiff
path: root/src/sys2.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-11-30 07:34:12 +0000
committerJim Meyering <jim@meyering.net>1997-11-30 07:34:12 +0000
commit75a5b970b3dd7ec798f3e8b45ef8961ed2fe9f11 (patch)
treef6103c7db5a95062da4282c0e9b6089b879b0e43 /src/sys2.h
parente08f95ef541dfc7f8aafdcb50f4d69edba81db76 (diff)
downloadcoreutils-75a5b970b3dd7ec798f3e8b45ef8961ed2fe9f11.tar.xz
(mempcpy): remove static inline function
Diffstat (limited to 'src/sys2.h')
-rw-r--r--src/sys2.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/sys2.h b/src/sys2.h
index a68327e18..9d9082b1a 100644
--- a/src/sys2.h
+++ b/src/sys2.h
@@ -143,16 +143,6 @@ char *getenv ();
#include "xalloc.h"
#ifndef HAVE_MEMPCPY
-# if defined (__GNUC__)
-/* Use an inline function with GNU C so we don't get the warning that
- `value computed is not used'. */
-static __inline__ void*
-mempcpy (void *d, const void *s, size_t n)
-{
- return (char *) memcpy (d, s, n) + n;
-}
-# else
/* Be CAREFUL that there are no side effects in N. */
-# define mempcpy(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N)))
-# endif
+# define mempcpy(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N)))
#endif