Add guard around free_static_C_locale
authorEmil A Eklund <eae@chromium.org>
Tue, 14 Aug 2018 21:47:20 +0000 (14:47 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 15 Aug 2018 01:10:17 +0000 (18:10 -0700)
Add HB_USE_ATEXIT guard around free_static_C_locale missed by previous
commit.

src/hb-common.cc

index 22dd52f..614b71b 100644 (file)
@@ -731,8 +731,9 @@ parse_uint32 (const char **pp, const char *end, uint32_t *pv)
 
 #ifdef USE_XLOCALE
 
-
+#ifdef HB_USE_ATEXIT
 static void free_static_C_locale (void);
+#endif
 
 static struct hb_C_locale_lazy_loader_t : hb_lazy_loader_t<hb_remove_ptr_t<HB_LOCALE_T>::value,
                                                          hb_C_locale_lazy_loader_t>