[amalgam] Fix UCD issue
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 2 Jul 2019 23:02:13 +0000 (16:02 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 2 Jul 2019 23:08:53 +0000 (16:08 -0700)
This actually makes it build now!

Part https://github.com/harfbuzz/harfbuzz/issues/1809

Keeping open to add tests, CI, etc.

src/hb-ucd.cc
src/hb-unicode.cc
src/hb-unicode.hh

index 69949a2..b29f2a9 100644 (file)
@@ -15,6 +15,7 @@
  */
 
 #include "hb.hh"
+#include "hb-unicode.hh"
 #include "hb-machinery.hh"
 
 #include "hb-ucd-table.hh"
@@ -235,10 +236,6 @@ void free_static_ucd_funcs ()
 }
 #endif
 
-extern "C" HB_INTERNAL
-hb_unicode_funcs_t *
-hb_ucd_get_unicode_funcs ();
-
 hb_unicode_funcs_t *
 hb_ucd_get_unicode_funcs ()
 {
index ed4fb77..e2deaa2 100644 (file)
@@ -126,8 +126,6 @@ hb_unicode_decompose_compatibility_nil (hb_unicode_funcs_t *ufuncs     HB_UNUSED
 }
 #endif
 
-
-extern "C" hb_unicode_funcs_t *hb_ucd_get_unicode_funcs ();
 extern "C" hb_unicode_funcs_t *hb_glib_get_unicode_funcs ();
 extern "C" hb_unicode_funcs_t *hb_icu_get_unicode_funcs ();
 
index 021fa46..9b181c1 100644 (file)
@@ -395,4 +395,7 @@ HB_INTERNAL bool
 _hb_unicode_is_emoji_Extended_Pictographic (hb_codepoint_t cp);
 
 
+extern "C" HB_INTERNAL hb_unicode_funcs_t *hb_ucd_get_unicode_funcs ();
+
+
 #endif /* HB_UNICODE_HH */