Mercurial > emacs
changeset 12675:8c9369149a9d
Move #define of bcopy to after #include <string.h>.
author | David J. MacKenzie <djm@gnu.org> |
---|---|
date | Wed, 26 Jul 1995 17:54:50 +0000 |
parents | 411fcd86eeeb |
children | d97688032b10 |
files | src/termcap.c |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/termcap.c Wed Jul 26 06:28:15 1995 +0000 +++ b/src/termcap.c Wed Jul 26 17:54:50 1995 +0000 @@ -1,5 +1,5 @@ /* Work-alike for termcap, plus extra features. - Copyright (C) 1985, 1986, 1993, 1994 Free Software Foundation, Inc. + Copyright (C) 1985, 86, 93, 94, 95 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -28,10 +28,6 @@ #else /* not HAVE_CONFIG_H */ -#if defined(HAVE_STRING_H) || defined(STDC_HEADERS) -#define bcopy(s, d, n) memcpy ((d), (s), (n)) -#endif - #ifdef STDC_HEADERS #include <stdlib.h> #include <string.h> @@ -41,6 +37,11 @@ char *realloc (); #endif +/* Do this after the include, in case string.h prototypes bcopy. */ +#if (defined(HAVE_STRING_H) || defined(STDC_HEADERS)) && !defined(bcopy) +#define bcopy(s, d, n) memcpy ((d), (s), (n)) +#endif + #ifdef HAVE_UNISTD_H #include <unistd.h> #endif