Try fixing build for platforms that have no visibility attributes

pull/743/merge
Behdad Esfahbod 7 years ago
parent f70100417c
commit b87cbe2bec
  1. 1
      src/hb-private.hh
  2. 2
      src/hb-subset.cc
  3. 2
      src/main.cc

@ -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 @@
#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 @@
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)

Loading…
Cancel
Save