提交 b87cbe2b 编写于 作者: B Behdad Esfahbod

Try fixing build for platforms that have no visibility attributes

上级 f7010041
...@@ -124,6 +124,7 @@ extern "C" void hb_free_impl(void *ptr); ...@@ -124,6 +124,7 @@ extern "C" void hb_free_impl(void *ptr);
# define HB_INTERNAL __attribute__((__visibility__("hidden"))) # define HB_INTERNAL __attribute__((__visibility__("hidden")))
# else # else
# define HB_INTERNAL # define HB_INTERNAL
# define HB_NO_VISIBILITY 1
# endif # endif
#endif #endif
......
...@@ -35,7 +35,9 @@ ...@@ -35,7 +35,9 @@
#include "hb-ot-glyf-table.hh" #include "hb-ot-glyf-table.hh"
#ifndef HB_NO_VISIBILITY
const void * const OT::_hb_NullPool[HB_NULL_POOL_SIZE / sizeof (void *)] = {}; const void * const OT::_hb_NullPool[HB_NULL_POOL_SIZE / sizeof (void *)] = {};
#endif
struct hb_subset_profile_t { struct hb_subset_profile_t {
......
...@@ -37,7 +37,9 @@ ...@@ -37,7 +37,9 @@
using namespace OT; using namespace OT;
#ifndef HB_NO_VISIBILITY
const void * const OT::_hb_NullPool[HB_NULL_POOL_SIZE / sizeof (void *)] = {}; const void * const OT::_hb_NullPool[HB_NULL_POOL_SIZE / sizeof (void *)] = {};
#endif
int int
main (int argc, char **argv) main (int argc, char **argv)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册