Merge pull request #196 from srl295/aix

AIX fixes
This commit is contained in:
Behdad Esfahbod 2015-12-14 14:19:03 +01:00
commit 15f2c055c1
4 changed files with 5 additions and 7 deletions

View File

@ -9,13 +9,12 @@ stat=0
test "x$HBHEADERS" = x && HBHEADERS=`cd "$srcdir"; find . -maxdepth 1 -name 'hb*.h'`
test "x$HBSOURCES" = x && HBSOURCES=`cd "$srcdir"; find . -maxdepth 1 -name 'hb-*.cc' -or -name 'hb-*.hh'`
for x in $HBHEADERS $HBSOURCES; do
test -f "$srcdir/$x" && x="$srcdir/$x"
echo "$x" | grep '[^h]$' -q && continue;
echo "$x" | grep -q '[^h]$' && continue;
xx=`echo "$x" | sed 's@.*/@@'`
tag=`echo "$xx" | tr 'a-z.-' 'A-Z_'`
lines=`grep "\<$tag\>" "$x" | wc -l | sed 's/[ ]*//g'`
lines=`grep -w "$tag" "$x" | wc -l | sed 's/[ ]*//g'`
if test "x$lines" != x3; then
echo "Ouch, header file $x does not have correct preprocessor guards"
stat=1

View File

@ -82,7 +82,7 @@ struct hb_font_funcs_t {
HB_FONT_FUNCS_IMPLEMENT_CALLBACKS
#undef HB_FONT_FUNC_IMPLEMENT
} f;
void (*array[]) (void);
void (*array[VAR]) (void);
} get;
};

View File

@ -103,9 +103,6 @@ static inline Type& StructAfter(TObject &X)
static const unsigned int static_size = (size); \
static const unsigned int min_size = (size)
/* Size signifying variable-sized array */
#define VAR 1
#define DEFINE_SIZE_UNION(size, _member) \
DEFINE_INSTANCE_ASSERTION (this->u._member.static_size == (size)); \
static const unsigned int min_size = (size)

View File

@ -1005,5 +1005,7 @@ hb_options (void)
return _hb_options.opts;
}
/* Size signifying variable-sized array */
#define VAR 1
#endif /* HB_PRIVATE_HH */