fix: broken building on glib < 2.14
Этот коммит содержится в:
родитель
931f0d073d
Коммит
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;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user