From: Behdad Esfahbod Date: Wed, 17 Jul 2019 16:35:56 +0000 (-0700) Subject: [amalgam] Fix redundant-declaration warning/error X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25e2562fdff6c14a9cb70999a1ad71ee1bdff494;p=platform%2Fupstream%2FlibHarfBuzzSharp.git [amalgam] Fix redundant-declaration warning/error --- diff --git a/src/hb-unicode.cc b/src/hb-unicode.cc index e2deaa2..9a81840 100644 --- a/src/hb-unicode.cc +++ b/src/hb-unicode.cc @@ -126,8 +126,12 @@ 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 (); +#if !defined(HB_NO_UNICODE_FUNCS) && defined(HAVE_GLIB) +#include "hb-glib.h" +#endif +#if !defined(HB_NO_UNICODE_FUNCS) && defined(HAVE_ICU) && defined(HAVE_ICU_BUILTIN) +#include "hb-icu.h" +#endif hb_unicode_funcs_t * hb_unicode_funcs_get_default ()