diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-06-03 17:32:10 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-06-03 17:32:10 +0000 |
commit | 9e4ecb261908eab14cf6a3c39209d6788eefadf2 (patch) | |
tree | da463095bbffb2acbca88855568f88338db7beb8 /src/regex.c | |
parent | 93c3f9a275d76d0432c40a3295fc75db2d7307f4 (diff) | |
download | emacs-9e4ecb261908eab14cf6a3c39209d6788eefadf2.tar.gz |
Undefined INHIBIT_STRING_HEADER when we have no
other way of getting a bcopy and a bzero.
Diffstat (limited to 'src/regex.c')
-rw-r--r-- | src/regex.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/regex.c b/src/regex.c index 2ccabc12e94..e6d614524c9 100644 --- a/src/regex.c +++ b/src/regex.c @@ -62,8 +62,19 @@ char *malloc (); 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 <string.h> |