Try at fixing multiple-definition of NullPool
If we don't have visibility, make NullPool static.
This commit is contained in:
parent
3d421ce307
commit
cd32177a32
|
@ -134,7 +134,13 @@ static inline Type& StructAfter(TObject &X)
|
||||||
|
|
||||||
#define HB_NULL_POOL_SIZE 264
|
#define HB_NULL_POOL_SIZE 264
|
||||||
static_assert (HB_NULL_POOL_SIZE % sizeof (void *) == 0, "Align HB_NULL_POOL_SIZE.");
|
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. */
|
/* Generic nul-content Null objects. */
|
||||||
template <typename Type>
|
template <typename Type>
|
||||||
|
|
|
@ -40,7 +40,9 @@
|
||||||
#include "hb-ot-map-private.hh"
|
#include "hb-ot-map-private.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
|
||||||
|
|
||||||
|
|
||||||
hb_ot_layout_t *
|
hb_ot_layout_t *
|
||||||
|
|
|
@ -120,9 +120,7 @@ extern "C" void hb_free_impl(void *ptr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HB_INTERNAL
|
#ifndef HB_INTERNAL
|
||||||
# ifdef __SUNPRO_CC
|
# if !defined(HB_NO_VISIBILITY) && !defined(__MINGW32__) && !defined(__CYGWIN__)
|
||||||
# define HB_INTERNAL __hidden
|
|
||||||
# elif !defined(__MINGW32__) && !defined(__CYGWIN__)
|
|
||||||
# define HB_INTERNAL __attribute__((__visibility__("hidden")))
|
# define HB_INTERNAL __attribute__((__visibility__("hidden")))
|
||||||
# else
|
# else
|
||||||
# define HB_INTERNAL
|
# define HB_INTERNAL
|
||||||
|
|
Loading…
Reference in New Issue