From 498e4373dc2eb98fa9b18a0824c7912ed84a4c80 Mon Sep 17 00:00:00 2001 From: prrace Date: Sat, 9 Jun 2018 16:04:28 -0700 Subject: [PATCH] Fix SunStudio 12.6 build (#1053) --- src/hb-face.cc | 2 +- src/hb-private.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-face.cc b/src/hb-face.cc index b8d7e84d7..2fef09d03 100644 --- a/src/hb-face.cc +++ b/src/hb-face.cc @@ -514,7 +514,7 @@ hb_face_get_table_tags (hb_face_t *face, unsigned int *table_count, /* IN/OUT */ hb_tag_t *table_tags /* OUT */) { - if (face->destroy != _hb_face_for_data_closure_destroy) + if (face->destroy != (hb_destroy_func_t) _hb_face_for_data_closure_destroy) { if (table_count) *table_count = 0; diff --git a/src/hb-private.hh b/src/hb-private.hh index 4edb27cb7..ac00e022b 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -147,7 +147,7 @@ extern "C" void hb_free_impl(void *ptr); #define HB_FUNC __func__ #endif -#ifdef __SUNPRO_CC +#if defined(__SUNPRO_CC) && (__SUNPRO_CC < 0x5140) /* https://github.com/harfbuzz/harfbuzz/issues/630 */ #define __restrict #endif