# HG changeset patch # User Richard M. Stallman # Date 747837390 0 # Node ID a915b866ac7f213b1a8dcbe904acf9385708a3be # Parent ca55f9c620c58e789e03abafa437cbcb4ef4304e (bzero, bcopy, bcmp): Don't define as functions if they are defined as macros. diff -r ca55f9c620c5 -r a915b866ac7f src/sysdep.c --- a/src/sysdep.c Sun Sep 12 11:25:16 1993 +0000 +++ b/src/sysdep.c Sun Sep 12 12:36:30 1993 +0000 @@ -2303,6 +2303,8 @@ #ifndef BSTRING +#ifndef bzero + void bzero (b, length) register char *b; @@ -2325,6 +2327,9 @@ #endif /* not VMS */ } +#endif /* no bzero */ + +#ifndef bcopy /* Saying `void' requires a declaration, above, where bcopy is used and that declaration causes pain for systems where bcopy is a macro. */ bcopy (b1, b2, length) @@ -2348,7 +2353,9 @@ *b2++ = *b1++; #endif /* not VMS */ } - +#endif /* no bcopy */ + +#ifndef bcmp int bcmp (b1, b2, length) /* This could be a macro! */ register char *b1; @@ -2368,6 +2375,8 @@ return 0; #endif /* not VMS */ } +#endif /* no bcmp */ + #endif /* not BSTRING */ #ifndef HAVE_RANDOM