Include config.h.
authorJim Meyering <jim@meyering.net>
Tue, 10 Dec 1996 05:22:12 +0000 (05:22 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 10 Dec 1996 05:22:12 +0000 (05:22 +0000)
[!HAVE_BCOPY && HAVE_MEMCPY && !defined (bcopy)]: Define bcopy
in terms of memcpy.  Reported by Marcus Daniels.

lib/obstack.h

index 09f872e..5dd8881 100644 (file)
@@ -102,6 +102,15 @@ Summary:
 
 #ifndef __OBSTACK_H__
 #define __OBSTACK_H__
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#if !defined (HAVE_BCOPY) && defined (HAVE_MEMCPY) && !defined (bcopy)
+# define bcopy(from, to, len) memcpy ((to), (from), (len))
+#endif
+
 \f
 /* We use subtraction of (char *)0 instead of casting to int
    because on word-addressable machines a simple cast to int