Skip to content

Commit

Permalink
SIZEOF_SIZE_T doesn't exist on AIX and POWER8 (ppc64le), keep using S…
Browse files Browse the repository at this point in the history
…IZEOF_LONG
  • Loading branch information
kaplanlior committed Jul 13, 2017
1 parent 5fb2abd commit c2c60fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/mbstring/oniguruma/src/regint.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@
} while(0)

/* sizeof(OnigCodePoint) */
#define WORD_ALIGNMENT_SIZE SIZEOF_SIZE_T
#ifdef SIZEOF_SIZE_T
# define WORD_ALIGNMENT_SIZE SIZEOF_SIZE_T
#else
# define WORD_ALIGNMENT_SIZE SIZEOF_LONG
#endif

#define GET_ALIGNMENT_PAD_SIZE(addr,pad_size) do {\
(pad_size) = WORD_ALIGNMENT_SIZE \
Expand Down

0 comments on commit c2c60fc

Please sign in to comment.