Revert "Minor" - revert moving extern "C" definitions in-function
This reverts commit 62e60322cb
since it
breaks building HarfBuzz as part of Chromium.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1821.
This commit is contained in:
parent
f18ea1dd3a
commit
2e7021da7d
@ -126,16 +126,17 @@ hb_unicode_decompose_compatibility_nil (hb_unicode_funcs_t *ufuncs HB_UNUSED
|
||||
}
|
||||
#endif
|
||||
|
||||
extern "C" hb_unicode_funcs_t *hb_glib_get_unicode_funcs ();
|
||||
extern "C" hb_unicode_funcs_t *hb_icu_get_unicode_funcs ();
|
||||
|
||||
hb_unicode_funcs_t *
|
||||
hb_unicode_funcs_get_default ()
|
||||
{
|
||||
#if !defined(HB_NO_UNICODE_FUNCS) && !defined(HB_NO_UCD)
|
||||
return hb_ucd_get_unicode_funcs ();
|
||||
#elif !defined(HB_NO_UNICODE_FUNCS) && defined(HAVE_GLIB)
|
||||
extern "C" hb_unicode_funcs_t *hb_glib_get_unicode_funcs ();
|
||||
return hb_glib_get_unicode_funcs ();
|
||||
#elif !defined(HB_NO_UNICODE_FUNCS) && defined(HAVE_ICU) && defined(HAVE_ICU_BUILTIN)
|
||||
extern "C" hb_unicode_funcs_t *hb_icu_get_unicode_funcs ();
|
||||
return hb_icu_get_unicode_funcs ();
|
||||
#else
|
||||
#define HB_UNICODE_FUNCS_NIL 1
|
||||
|
Loading…
Reference in New Issue
Block a user