wrap definition of free_langs() with HAVE_ATEXIT

...to avoid an unused function warning; see mozilla bug https://bugzilla.mozilla.org/show_bug.cgi?id=984081.
This commit is contained in:
jfkthame 2014-03-16 08:25:17 +00:00 committed by Behdad Esfahbod
parent a9e25e90a4
commit 0082dbeae6
1 changed files with 2 additions and 0 deletions

View File

@ -234,6 +234,7 @@ struct hb_language_item_t {
static hb_language_item_t *langs;
#ifdef HAVE_ATEXIT
static inline
void free_langs (void)
{
@ -244,6 +245,7 @@ void free_langs (void)
langs = next;
}
}
#endif
static hb_language_item_t *
lang_find_or_insert (const char *key)