diff options
author | Christian Persch <chpe@gnome.org> | 2015-10-07 22:29:16 +0200 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2015-10-07 22:29:16 +0200 |
commit | 9201006aa1b06ccf8de4cf41f42456f7f87693ed (patch) | |
tree | 87c0c5ea073e8ee94d56a7b545ebf632ee26a884 | |
parent | 71944514e7d8837c624933f65bf716d9106dea88 (diff) | |
download | vte-9201006aa1b06ccf8de4cf41f42456f7f87693ed.tar.gz |
regex: Fix build without PCRE2
-rw-r--r-- | src/vte.cc | 4 | ||||
-rw-r--r-- | src/vteapp.c | 2 |
2 files changed, 6 insertions, 0 deletions
@@ -2193,6 +2193,7 @@ vte_terminal_event_check_regex_simple(VteTerminal *terminal, guint32 match_flags, char **matches) { +#ifdef WITH_PCRE2 VteTerminalPrivate *pvt = terminal->pvt; gsize offset, sattr, eattr; pcre2_match_data_8 *match_data; @@ -2249,6 +2250,9 @@ vte_terminal_event_check_regex_simple(VteTerminal *terminal, pcre2_match_context_free_8(match_context); return any_matches; +#else + return FALSE; +#endif } /** diff --git a/src/vteapp.c b/src/vteapp.c index bfddf8cc..844dbfc3 100644 --- a/src/vteapp.c +++ b/src/vteapp.c @@ -48,7 +48,9 @@ static const char *builtin_dingus[] = { NULL }; +#ifdef WITH_PCRE2 static gboolean use_gregex = FALSE; +#endif static void window_title_changed(GtkWidget *widget, gpointer win) |