diff options
author | Paul Eggert <eggert@twinsun.com> | 1994-10-26 22:43:45 +0000 |
---|---|---|
committer | Paul Eggert <eggert@twinsun.com> | 1994-10-26 22:43:45 +0000 |
commit | 6681af04338786de19eca39afc7bfd467195f775 (patch) | |
tree | 2235ab0979297a6f57639c87b5928e234594fb2e /src/regex.h | |
parent | b9abad3699541c9636729f882187da64a128ce5c (diff) | |
download | emacs-6681af04338786de19eca39afc7bfd467195f775.tar.gz |
(re_comp, re_exec): Define this obsolete 4.2bsd
interface only if the new feature test macro _REGEX_RE_COMP is defined.
This avoids a clash with Cray YMP include files.
Diffstat (limited to 'src/regex.h')
-rw-r--r-- | src/regex.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/regex.h b/src/regex.h index 40f684cb8e5..55927f627c9 100644 --- a/src/regex.h +++ b/src/regex.h @@ -460,9 +460,11 @@ extern void re_set_registers _RE_ARGS ((struct re_pattern_buffer *buffer, struct re_registers *regs, unsigned num_regs, regoff_t *starts, regoff_t *ends)); +#ifdef _REGEX_RE_COMP /* 4.2 bsd compatibility. */ extern char *re_comp _RE_ARGS ((const char *)); extern int re_exec _RE_ARGS ((const char *)); +#endif /* POSIX compatibility. */ extern int regcomp _RE_ARGS ((regex_t *preg, const char *pattern, int cflags)); |