X-Git-Url: https://git.distorted.org.uk/~mdw/anag/blobdiff_plain/7c2b74abc8bbc3b009a233b65d4f8aa23219892d..HEAD:/anag.c diff --git a/anag.c b/anag.c index d27523b..80da3c3 100644 --- a/anag.c +++ b/anag.c @@ -72,7 +72,7 @@ The basic tests in the expression are:\n\ -regexp REGEXP matches with an (extended) regular expression\n\ " #endif -#ifdef HAVE_PCRE +#if defined(HAVE_PCRE) || defined(HAVE_PCRE2) "\ -pcre REGEXP matches with a Perl-like regular expression\n\ " @@ -138,7 +138,7 @@ static const struct opt opttab[] = { #ifdef HAVE_REGCOMP { "regexp", 1, 0, O_REGEXP }, #endif -#ifdef HAVE_PCRE +#if defined(HAVE_PCRE) || defined(HAVE_PCRE2) { "pcre", 1, 0, O_PCRE }, #endif { "length", 1, 0, O_LENGTH }, @@ -400,7 +400,7 @@ static void p_factor(p_ctx *p, node **nn) #ifdef HAVE_REGCOMP case O_REGEXP: *nn = regexp(p->a + 1); break; #endif -#ifdef HAVE_PCRE +#if defined(HAVE_PCRE) || defined(HAVE_PCRE2) case O_PCRE: *nn = pcrenode(p->a + 1); break; #endif case O_MONO: *nn = mono(p->a + 1); break;