Bug fix: Compilation failure with NO_LIBCONFIG / NO_C2

- Fix compilation failure with NO_LIBCONFIG or NO_C2. Thanks to
  Spaulding for reporting.
This commit is contained in:
Richard Grenville
2013-05-09 21:47:09 +08:00
parent 48fb54dfae
commit 90099d371d
2 changed files with 86 additions and 86 deletions

View File

@ -146,16 +146,16 @@ free_damage(session_t *ps, Damage *p) {
}
}
#ifdef CONFIG_C2
/**
* Destroy a condition list.
*/
static inline void
free_wincondlst(c2_lptr_t **pcondlst) {
#ifdef CONFIG_C2
while ((*pcondlst = c2_free_lptr(*pcondlst)))
continue;
}
#endif
}
/**
* Check whether a paint_t contains enough data.