diff src/tparam.c @ 43675:b9ee14ccc0c8

[!emacs]: Move #define of bcopy to after string.h.
author Richard M. Stallman <rms@gnu.org>
date Sun, 03 Mar 2002 20:11:36 +0000
parents c6d74397e65f
children 01b93e5e53a7
line wrap: on
line diff
--- a/src/tparam.c	Sun Mar 03 20:11:20 2002 +0000
+++ b/src/tparam.c	Sun Mar 03 20:11:36 2002 +0000
@@ -24,9 +24,6 @@
 #ifdef emacs
 #include "lisp.h"		/* for xmalloc */
 #else
-#if defined(HAVE_STRING_H) || defined(STDC_HEADERS)
-#define bcopy(s, d, n) memcpy ((d), (s), (n))
-#endif
 
 #ifdef STDC_HEADERS
 #include <stdlib.h>
@@ -36,6 +33,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
+
 #endif /* not emacs */
 
 #ifndef NULL