mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-24 20:22:11 +03:00
fix: broken building on glib < 2.14
This commit is contained in:
parent
931f0d073d
commit
d99c1def10
@ -22,6 +22,8 @@ typedef struct mc_search_cond_struct {
|
||||
GString *lower;
|
||||
#if GLIB_CHECK_VERSION (2, 14, 0)
|
||||
GRegex *regex_str;
|
||||
#else
|
||||
GString *regex_str;
|
||||
#endif
|
||||
gsize len;
|
||||
gchar *charset;
|
||||
|
@ -209,7 +209,13 @@ mc_search__cond_struct_new_regex_ci_str (const char *charset, const char *str, g
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
static mc_search__found_cond_t
|
||||
mc_search__regex_found_cond_one (mc_search_t * mc_search, GRegex * regex, GString * search_str)
|
||||
mc_search__regex_found_cond_one (mc_search_t * mc_search,
|
||||
#if GLIB_CHECK_VERSION (2, 14, 0)
|
||||
GRegex * regex,
|
||||
#else
|
||||
GString * regex,
|
||||
#endif
|
||||
GString * search_str)
|
||||
{
|
||||
#if GLIB_CHECK_VERSION (2, 14, 0)
|
||||
GMatchInfo *match_info;
|
||||
|
Loading…
Reference in New Issue
Block a user