Mercurial > hg > octave-nkf > gnulib-hg
changeset 807:df0eb4fbd409
Include config.h.
[!HAVE_BCOPY && HAVE_MEMCPY && !defined (bcopy)]: Define bcopy
in terms of memcpy. Reported by Marcus Daniels.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Tue, 10 Dec 1996 05:22:12 +0000 |
parents | 3063903767e8 |
children | 174c5e412409 |
files | lib/obstack.h |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/obstack.h +++ b/lib/obstack.h @@ -102,6 +102,15 @@ #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 + /* We use subtraction of (char *)0 instead of casting to int because on word-addressable machines a simple cast to int