fix: broken building on glib < 2.14

This commit is contained in:
Ilia Maslakov 2009-04-27 06:34:10 +00:00
parent 931f0d073d
commit d99c1def10
2 changed files with 9 additions and 1 deletions

View File

@ -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;

View File

@ -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;