# HG changeset patch # User Karl Heuer # Date 802200730 0 # Node ID 094636c759bfaf11f26e7b40d6e3333f39bd5535 # Parent c3611dff7bbaf33bb27129222d5b2b4012705972 Undefined INHIBIT_STRING_HEADER when we have no other way of getting a bcopy and a bzero. diff -r c3611dff7bba -r 094636c759bf src/regex.c --- a/src/regex.c Sat Jun 03 17:31:53 1995 +0000 +++ b/src/regex.c Sat Jun 03 17:32:10 1995 +0000 @@ -62,8 +62,19 @@ char *realloc (); #endif -/* We used to test for `BSTRING' here, but only GCC and Emacs define - `BSTRING', as far as I know, and neither of them use this code. */ +/* When used in Emacs's lib-src, we need to get bzero and bcopy somehow. + If nothing else has been done, use the method below. */ +#ifdef INHIBIT_STRING_HEADER +#if !(defined (HAVE_BZERO) && defined (HAVE_BCOPY)) +#if !defined (bzero) && !defined (bcopy) +#undef INHIBIT_STRING_HEADER +#endif +#endif +#endif + +/* This is the normal way of making sure we have a bcopy and a bzero. + This is used in most programs--a few other programs avoid this + by defining INHIBIT_STRING_HEADER. */ #ifndef INHIBIT_STRING_HEADER #if HAVE_STRING_H || STDC_HEADERS || defined (_LIBC) #include