[config] Compile out modified combining-class if HB_NO_OT_SHAPE
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 26 Jun 2019 21:51:17 +0000 (14:51 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 26 Jun 2019 21:51:41 +0000 (14:51 -0700)
Part of https://github.com/harfbuzz/harfbuzz/issues/1652

src/hb-unicode.cc

index 56f1c62..be87759 100644 (file)
@@ -453,6 +453,7 @@ hb_unicode_decompose_compatibility (hb_unicode_funcs_t *ufuncs,
 #endif
 
 
+#ifndef HB_NO_OT_SHAPE
 /* See hb-unicode.hh for details. */
 const uint8_t
 _hb_modified_combining_class[256] =
@@ -565,6 +566,7 @@ _hb_modified_combining_class[256] =
   241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
   255, /* HB_UNICODE_COMBINING_CLASS_INVALID */
 };
+#endif
 
 
 /*