summaryrefslogtreecommitdiff
path: root/src/m/alpha.h
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-05-05 02:21:21 +0000
committerRichard M. Stallman <rms@gnu.org>1995-05-05 02:21:21 +0000
commit7e906e14d3d6c383d9bf4083b17ee7145c0181cc (patch)
tree1a5d3fbdd5800524bc916f609cc3c53fae374e2b /src/m/alpha.h
parent1395f3aca822ce0639d842a2ef394246dab2856a (diff)
downloademacs-7e906e14d3d6c383d9bf4083b17ee7145c0181cc.tar.gz
(bcopy, bzero, bcmp): Don't let string.h prototype these.
Diffstat (limited to 'src/m/alpha.h')
-rw-r--r--src/m/alpha.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/m/alpha.h b/src/m/alpha.h
index 6d33ed3c5cc..47b0cdcc1bf 100644
--- a/src/m/alpha.h
+++ b/src/m/alpha.h
@@ -196,7 +196,20 @@ NOTE-END
#ifndef THIS_IS_YMAKEFILE
/* We need these because pointers are larger than the default ints. */
#include <alloca.h>
+
+/* Hack alert! For reasons unknown to mankind the string.h file insists
+ on defining bcopy etc. as taking char pointers as arguments. With
+ Emacs this produces an endless amount of warning which are harmless,
+ but tends to flood the real errors. This hack works around this problem
+ by not prototyping. */
+#define bcopy string_h_bcopy
+#define bzero string_h_bzero
+#define bcmp string_h_bcmp
#include <string.h>
+#undef bcopy
+#undef bzero
+#undef bcmp
+
extern void *malloc (), *realloc ();
extern long *xmalloc (), *xrealloc ();
#endif