From 9201006aa1b06ccf8de4cf41f42456f7f87693ed Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 7 Oct 2015 22:29:16 +0200 Subject: regex: Fix build without PCRE2 --- src/vte.cc | 4 ++++ src/vteapp.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/vte.cc b/src/vte.cc index 4ae96bbf..2963bfe8 100644 --- a/src/vte.cc +++ b/src/vte.cc @@ -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) -- cgit v1.2.1