1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-25 18:19:00 +02:00

(mempcpy): remove static inline function

This commit is contained in:
Jim Meyering
1997-11-30 07:34:12 +00:00
parent e08f95ef54
commit 75a5b970b3
+1 -11
View File
@@ -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