[usp] define atfree callback only if used
authorEbrahim Byagowi <ebrahim@gnu.org>
Tue, 16 Jul 2019 06:54:29 +0000 (11:24 +0430)
committerGitHub <noreply@github.com>
Tue, 16 Jul 2019 06:54:29 +0000 (11:24 +0430)
src/hb-uniscribe.cc

index 5c7ff87..b113ed4 100644 (file)
@@ -245,8 +245,9 @@ struct hb_uniscribe_shaper_funcs_t
   }
 };
 
-
+#if HB_USE_ATEXIT
 static void free_static_uniscribe_shaper_funcs ();
+#endif
 
 static struct hb_uniscribe_shaper_funcs_lazy_loader_t : hb_lazy_loader_t<hb_uniscribe_shaper_funcs_t,
                                                                         hb_uniscribe_shaper_funcs_lazy_loader_t>