diff --git a/src/hb-ft.cc b/src/hb-ft.cc index 01341b604a13c41ea1947f5d2d65e1bbee29b518..c8740d15c700157921efd68948ecfe47b7f29c28 100644 --- a/src/hb-ft.cc +++ b/src/hb-ft.cc @@ -417,7 +417,9 @@ hb_ft_get_font_h_extents (hb_font_t *font HB_UNUSED, return true; } +#ifdef HB_USE_ATEXIT static void free_static_ft_funcs (void); +#endif static struct hb_ft_font_funcs_lazy_loader_t : hb_font_funcs_lazy_loader_t { @@ -682,8 +684,9 @@ hb_ft_font_create_referenced (FT_Face ft_face) return hb_ft_font_create (ft_face, _hb_ft_face_destroy); } - +#ifdef HB_USE_ATEXIT static void free_static_ft_library (void); +#endif static struct hb_ft_library_lazy_loader_t : hb_lazy_loader_t::value, hb_ft_library_lazy_loader_t> diff --git a/src/hb-glib.cc b/src/hb-glib.cc index 809b22f6b46928503194de291e8b6e6997adf7f2..81ec612d7223dc2636aa7534da558e93fc832121 100644 --- a/src/hb-glib.cc +++ b/src/hb-glib.cc @@ -366,8 +366,9 @@ hb_glib_unicode_decompose_compatibility (hb_unicode_funcs_t *ufuncs HB_UNUSED, } - +#ifdef HB_USE_ATEXIT static void free_static_glib_funcs (void); +#endif static struct hb_glib_unicode_funcs_lazy_loader_t : hb_unicode_funcs_lazy_loader_t { diff --git a/src/hb-icu.cc b/src/hb-icu.cc index 2e3ad36754413ca0d2e1722dc4c4f8fc4d1c201a..bffae07140220e9c85d59de9ec218b458464b1ba 100644 --- a/src/hb-icu.cc +++ b/src/hb-icu.cc @@ -343,8 +343,9 @@ hb_icu_unicode_decompose_compatibility (hb_unicode_funcs_t *ufuncs HB_UNUSED, return utf32_len; } - +#ifdef HB_USE_ATEXIT static void free_static_icu_funcs (void); +#endif static struct hb_icu_unicode_funcs_lazy_loader_t : hb_unicode_funcs_lazy_loader_t { diff --git a/src/hb-ot-font.cc b/src/hb-ot-font.cc index 9da8fc7d497b3af38698fd40b768b718ffa42d5e..c559d87549162de456a8c76ce603ec51d3c695dd 100644 --- a/src/hb-ot-font.cc +++ b/src/hb-ot-font.cc @@ -226,8 +226,9 @@ hb_ot_get_font_v_extents (hb_font_t *font, return ot_font->v_metrics.has_font_extents; } - +#ifdef HB_USE_ATEXIT static void free_static_ot_funcs (void); +#endif static struct hb_ot_font_funcs_lazy_loader_t : hb_font_funcs_lazy_loader_t { diff --git a/src/hb-shape.cc b/src/hb-shape.cc index 3c2e6c4a969d897b8346222198e6077faef2eb04..d3e2692fed13b3261742ca1177995f8c9eef8bb6 100644 --- a/src/hb-shape.cc +++ b/src/hb-shape.cc @@ -46,8 +46,10 @@ * contains the output glyphs and their positions. **/ - +#ifdef HB_USE_ATEXIT static void free_static_shaper_list (void); +#endif + static const char *nil_shaper_list[] = {nullptr}; static struct hb_shaper_list_lazy_loader_t : hb_lazy_loader_t