summaryrefslogtreecommitdiff
path: root/src/tparam.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2002-03-03 20:11:42 +0000
committerRichard M. Stallman <rms@gnu.org>2002-03-03 20:11:42 +0000
commit7109132248e4d20f0cbf7d53339ac9761380783c (patch)
treed010e6869a6865da45ee348658304d8c8714eae2 /src/tparam.c
parentd8eb23bd4017f3b35844ed814c8e4788f9f31b24 (diff)
downloademacs-7109132248e4d20f0cbf7d53339ac9761380783c.tar.gz
[!emacs]: Move #define of bcopy to after string.h.
Diffstat (limited to 'src/tparam.c')
-rw-r--r--src/tparam.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tparam.c b/src/tparam.c
index 0548c722198..5a9809aab47 100644
--- a/src/tparam.c
+++ b/src/tparam.c
@@ -24,9 +24,6 @@ Boston, MA 02111-1307, USA. */
#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 *malloc ();
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