Skip to content

Commit

Permalink
Merge pull request ibmruntimes#637 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 2, 2023
2 parents 881b2ea + 876bd72 commit d4489ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 8 additions & 4 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 @@ -339,23 +343,23 @@ 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
(
+ iter_items ()
| hb_map (&item_t::key)
| hb_map (&item_t::get_key)
| hb_map (hb_ridentity)
)
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
(
+ iter_items ()
| hb_map (&item_t::value)
| hb_map (&item_t::get_value)
| hb_map (hb_ridentity)
)

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) || defined(AIX_XLC_GE_17)
#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 d4489ff

Please sign in to comment.