Skip to content

Commit

Permalink
Merge pull request #688 from keithc-ca/aix_harfbuzz
Browse files Browse the repository at this point in the history
Fix missing definition of harfbuzz function on AIX
  • Loading branch information
pshipton authored Aug 1, 2023
2 parents c405bdd + 23f53fa commit fd11223
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 6 additions & 2 deletions src/java.desktop/share/native/libharfbuzz/hb-map.hh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ struct hb_hashmap_t
is_used_ (false), is_tombstone_ (false),
value () {}

// Needed for https://github.com/harfbuzz/harfbuzz/issues/4138
K& get_key () { return key; }
V& get_value () { return value; }

bool is_used () const { return is_used_; }
void set_used (bool is_used) { is_used_ = is_used; }
bool is_tombstone () const { return is_tombstone_; }
Expand Down Expand Up @@ -349,7 +353,7 @@ struct hb_hashmap_t
auto keys_ref () const HB_AUTO_RETURN
(
+ iter_items ()
| hb_map (&item_t::key)
| hb_map (&item_t::get_key)
)
auto keys () const HB_AUTO_RETURN
(
Expand All @@ -359,7 +363,7 @@ struct hb_hashmap_t
auto values_ref () const HB_AUTO_RETURN
(
+ iter_items ()
| hb_map (&item_t::value)
| hb_map (&item_t::get_value)
)
auto values () const HB_AUTO_RETURN
(
Expand Down
4 changes: 0 additions & 4 deletions src/java.desktop/share/native/libharfbuzz/hb-subset.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@
#include "OT/Color/sbix/sbix.hh"
#include "hb-ot-os2-table.hh"
#include "hb-ot-post-table.hh"

#if !defined(AIX)
#include "hb-ot-post-table-v2subset.hh"
#endif

#include "hb-ot-cff1-table.hh"
#include "hb-ot-cff2-table.hh"
#include "hb-ot-vorg-table.hh"
Expand Down

0 comments on commit fd11223

Please sign in to comment.