aboutsummaryrefslogtreecommitdiffstats
path: root/src/m
diff options
context:
space:
mode:
authorRichard M. Stallman1995-05-05 02:21:21 +0000
committerRichard M. Stallman1995-05-05 02:21:21 +0000
commitd978068262f183364fabdb197880d86d53c1f974 (patch)
treef743fbdd9c4820be53aeb4a44628be5c0d122384 /src/m
parent3162bafa9e6e2fb9cefc5ea9fc6a2b8928f02e97 (diff)
downloademacs-d978068262f183364fabdb197880d86d53c1f974.tar.gz
emacs-d978068262f183364fabdb197880d86d53c1f974.zip
(bcopy, bzero, bcmp): Don't let string.h prototype these.
Diffstat (limited to 'src/m')
-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
196#ifndef THIS_IS_YMAKEFILE 196#ifndef THIS_IS_YMAKEFILE
197/* We need these because pointers are larger than the default ints. */ 197/* We need these because pointers are larger than the default ints. */
198#include <alloca.h> 198#include <alloca.h>
199
200/* Hack alert! For reasons unknown to mankind the string.h file insists
201 on defining bcopy etc. as taking char pointers as arguments. With
202 Emacs this produces an endless amount of warning which are harmless,
203 but tends to flood the real errors. This hack works around this problem
204 by not prototyping. */
205#define bcopy string_h_bcopy
206#define bzero string_h_bzero
207#define bcmp string_h_bcmp
199#include <string.h> 208#include <string.h>
209#undef bcopy
210#undef bzero
211#undef bcmp
212
200extern void *malloc (), *realloc (); 213extern void *malloc (), *realloc ();
201extern long *xmalloc (), *xrealloc (); 214extern long *xmalloc (), *xrealloc ();
202#endif 215#endif