| # | Line 22 | Line 22 | |
|---|---|---|
| 22 | * $Id$ | |
| 23 | */ | |
| 24 | ||
| 25 | + | #include "config.h" |
| 26 | + | #ifdef HAVE_LIBPCRE |
| 27 | + | #include <pcre.h> |
| 28 | + | #endif |
| 29 | + | |
| 30 | #include "stdinc.h" | |
| 31 | #include "tools.h" | |
| 27 | – | #include "pcre.h" |
| 32 | #include "irc_string.h" | |
| 33 | #include "sprintf_irc.h" | |
| 34 | #include "client.h" | |
| # | Line 527 | Line 531 | strlcpy(char *dst, const char *src, size | |
| 531 | } | |
| 532 | #endif | |
| 533 | ||
| 534 | < | pcre * |
| 534 | > | #ifdef HAVE_LIBPCRE |
| 535 | > | void * |
| 536 | ircd_pcre_compile(const char *pattern, const char **errptr) | |
| 537 | { | |
| 538 | int erroroffset = 0; | |
| # | Line 539 | Line 544 | ircd_pcre_compile(const char *pattern, c | |
| 544 | } | |
| 545 | ||
| 546 | int | |
| 547 | < | ircd_pcre_exec(const pcre *code, const char *subject) |
| 547 | > | ircd_pcre_exec(const void *code, const char *subject) |
| 548 | { | |
| 549 | assert(code && subject); | |
| 550 | ||
| 551 | return pcre_exec(code, NULL, subject, strlen(subject), 0, 0, NULL, 0) < 0; | |
| 552 | } | |
| 553 | + | #endif |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |