(mempcpy): remove static inline function
authorJim Meyering <jim@meyering.net>
Sun, 30 Nov 1997 07:34:12 +0000 (07:34 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 30 Nov 1997 07:34:12 +0000 (07:34 +0000)
src/sys2.h

index a68327e..9d9082b 100644 (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