From eee8598d75d3af692d9ececf7e8ac458e892ba9e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 12 May 2010 23:22:55 -0400 Subject: [PATCH] Hide internal symbols --- src/hb-ot-layout-private.hh | 4 ++-- src/hb-private.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hb-ot-layout-private.hh b/src/hb-ot-layout-private.hh index e18222b..e25f7ac 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 7e292dc..03c53fb 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 -- 2.7.4