From: Jim Meyering Date: Tue, 10 Dec 1996 05:22:12 +0000 (+0000) Subject: Include config.h. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d8692e44a36a935fe74dee74d39332002ad1481;p=pspp Include config.h. [!HAVE_BCOPY && HAVE_MEMCPY && !defined (bcopy)]: Define bcopy in terms of memcpy. Reported by Marcus Daniels. --- diff --git a/lib/obstack.h b/lib/obstack.h index 09f872e28c..5dd8881516 100644 --- a/lib/obstack.h +++ b/lib/obstack.h @@ -102,6 +102,15 @@ Summary: #ifndef __OBSTACK_H__ #define __OBSTACK_H__ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#if !defined (HAVE_BCOPY) && defined (HAVE_MEMCPY) && !defined (bcopy) +# define bcopy(from, to, len) memcpy ((to), (from), (len)) +#endif + /* We use subtraction of (char *)0 instead of casting to int because on word-addressable machines a simple cast to int