From 357d0f29c431b842179ee4b56c21bcc402178ce7 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 12 May 2010 23:46:16 -0400 Subject: [PATCH] Make HB_PRIVATE more useful So we can apply it to class methods also. Not sure if that works! --- src/hb-blob-private.h | 2 +- src/hb-font-private.hh | 4 ++-- src/hb-private.h | 2 +- src/hb-unicode-private.h | 3 +-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/hb-blob-private.h b/src/hb-blob-private.h index 26cad0a..c91af65 100644 --- a/src/hb-blob-private.h +++ b/src/hb-blob-private.h @@ -50,7 +50,7 @@ struct _hb_blob_t { void *user_data; }; -HB_INTERNAL hb_blob_t _hb_blob_nil; +extern HB_INTERNAL hb_blob_t _hb_blob_nil; HB_END_DECLS diff --git a/src/hb-font-private.hh b/src/hb-font-private.hh index ec07931..0d82850 100644 --- a/src/hb-font-private.hh +++ b/src/hb-font-private.hh @@ -50,8 +50,8 @@ struct _hb_font_funcs_t { hb_font_get_kerning_func_t get_kerning; }; -HB_INTERNAL hb_font_funcs_t -_hb_font_funcs_nil; +extern HB_INTERNAL hb_font_funcs_t _hb_font_funcs_nil; + /* * hb_face_t diff --git a/src/hb-private.h b/src/hb-private.h index 03c53fb..6108d40 100644 --- a/src/hb-private.h +++ b/src/hb-private.h @@ -108,7 +108,7 @@ #endif #ifndef HB_INTERNAL -# define HB_INTERNAL extern __attribute__((__visibility__("hidden"))) +# define HB_INTERNAL __attribute__((__visibility__("hidden"))) #endif diff --git a/src/hb-unicode-private.h b/src/hb-unicode-private.h index ba530d2..01272da 100644 --- a/src/hb-unicode-private.h +++ b/src/hb-unicode-private.h @@ -49,8 +49,7 @@ struct _hb_unicode_funcs_t { hb_unicode_get_eastasian_width_func_t get_eastasian_width; }; -HB_INTERNAL hb_unicode_funcs_t -_hb_unicode_funcs_nil; +extern HB_INTERNAL hb_unicode_funcs_t _hb_unicode_funcs_nil; HB_INTERNAL hb_direction_t -- 2.7.4