From: Richard M. Stallman Date: Fri, 5 May 1995 02:21:21 +0000 (+0000) Subject: (bcopy, bzero, bcmp): Don't let string.h prototype these. X-Git-Tag: emacs-19.34~4162 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d978068262f183364fabdb197880d86d53c1f974;p=emacs.git (bcopy, bzero, bcmp): Don't let string.h prototype these. --- 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 + +/* 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 +#undef bcopy +#undef bzero +#undef bcmp + extern void *malloc (), *realloc (); extern long *xmalloc (), *xrealloc (); #endif