diff --git a/src/hb-ot-layout-private.hh b/src/hb-ot-layout-private.hh index e18222baf..e25f7ac87 100644 --- a/src/hb-ot-layout-private.hh +++ b/src/hb-ot-layout-private.hh @@ -80,10 +80,10 @@ struct _hb_ot_layout_context_t }; -void +HB_INTERNAL void _hb_ot_layout_init (hb_face_t *face); -void +HB_INTERNAL void _hb_ot_layout_fini (hb_face_t *face); diff --git a/src/hb-private.h b/src/hb-private.h index 7e292dc24..03c53fb5c 100644 --- a/src/hb-private.h +++ b/src/hb-private.h @@ -66,10 +66,6 @@ #undef MAX #define MAX(a,b) ((a) > (b) ? (a) : (b)) -#ifndef HB_INTERNAL -# define HB_INTERNAL extern -#endif - #undef ARRAY_LENGTH #define ARRAY_LENGTH(__array) ((signed int) (sizeof (__array) / sizeof (__array[0]))) @@ -111,6 +107,10 @@ #define HB_UNUSED #endif +#ifndef HB_INTERNAL +# define HB_INTERNAL extern __attribute__((__visibility__("hidden"))) +#endif + #if (defined(__WIN32__) && !defined(__WINE__)) || defined(_MSC_VER) #define snprintf _snprintf