Hide internal symbols
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 13 May 2010 03:22:55 +0000 (23:22 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 13 May 2010 03:22:55 +0000 (23:22 -0400)
src/hb-ot-layout-private.hh
src/hb-private.h

index e18222b..e25f7ac 100644 (file)
@@ -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);
 
 
index 7e292dc..03c53fb 100644 (file)
 #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])))
 
 #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