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.
diff --git a/src/hb-common.cc b/src/hb-common.cc
index 0fd790b..96725c4 100644
--- a/src/hb-common.cc
+++ b/src/hb-common.cc
@@ -234,6 +234,7 @@
static hb_language_item_t *langs;
+#ifdef HAVE_ATEXIT
static inline
void free_langs (void)
{
@@ -244,6 +245,7 @@
langs = next;
}
}
+#endif
static hb_language_item_t *
lang_find_or_insert (const char *key)