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

Try at fixing multiple-definition of NullPool

If we don't have visibility, make NullPool static.
上级 3d421ce3
......@@ -134,7 +134,13 @@ static inline Type& StructAfter(TObject &X)
#define HB_NULL_POOL_SIZE 264
static_assert (HB_NULL_POOL_SIZE % sizeof (void *) == 0, "Align HB_NULL_POOL_SIZE.");
extern HB_INTERNAL const void * const _hb_NullPool[HB_NULL_POOL_SIZE / sizeof (void *)];
#ifdef HB_NO_VISIBILITY
static
#else
extern HB_INTERNAL
#endif
const void * const _hb_NullPool[HB_NULL_POOL_SIZE / sizeof (void *)];
/* Generic nul-content Null objects. */
template <typename Type>
......
......@@ -40,7 +40,9 @@
#include "hb-ot-map-private.hh"
#ifndef HB_NO_VISIBILITY
const void * const OT::_hb_NullPool[HB_NULL_POOL_SIZE / sizeof (void *)] = {};
#endif
hb_ot_layout_t *
......
......@@ -120,9 +120,7 @@ extern "C" void hb_free_impl(void *ptr);
#endif
#ifndef HB_INTERNAL
# ifdef __SUNPRO_CC
# define HB_INTERNAL __hidden
# elif !defined(__MINGW32__) && !defined(__CYGWIN__)
# if !defined(HB_NO_VISIBILITY) && !defined(__MINGW32__) && !defined(__CYGWIN__)
# define HB_INTERNAL __attribute__((__visibility__("hidden")))
# else
# define HB_INTERNAL
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册