Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit c0604cb

Browse files
Tyler Steeleshipilev
authored andcommitted
8304291: [AIX] Broken build after JDK-8301998
Backport-of: 310aa9347861922af5f0311e9e93a5f49dee6adc
1 parent b63e16e commit c0604cb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/java.desktop/share/native/libharfbuzz/hb-algs.hh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,8 @@ hb_in_ranges (T u, T lo1, T hi1, Ts... ds)
875875
static inline bool
876876
hb_unsigned_mul_overflows (unsigned int count, unsigned int size, unsigned *result = nullptr)
877877
{
878-
#if (defined(__GNUC__) && (__GNUC__ >= 4)) || (defined(__clang__) && (__clang_major__ >= 8))
878+
/* avoid with xlc16 clang on AIX; it sets the gcc macros */
879+
#if (defined(__GNUC__) && !defined(AIX) && (__GNUC__ >= 4)) || (defined(__clang__) && (__clang_major__ >= 8))
879880
unsigned stack_result;
880881
if (!result)
881882
result = &stack_result;

src/java.desktop/share/native/libharfbuzz/hb-subset.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@
4343
#include "OT/Color/sbix/sbix.hh"
4444
#include "hb-ot-os2-table.hh"
4545
#include "hb-ot-post-table.hh"
46+
47+
#if !defined(AIX)
4648
#include "hb-ot-post-table-v2subset.hh"
49+
#endif
50+
4751
#include "hb-ot-cff1-table.hh"
4852
#include "hb-ot-cff2-table.hh"
4953
#include "hb-ot-vorg-table.hh"

0 commit comments

Comments
 (0)