From c2c60fcac75d74a5c6864af2723301c72cb73925 Mon Sep 17 00:00:00 2001 From: Lior Kaplan Date: Thu, 13 Jul 2017 18:05:47 +0300 Subject: [PATCH] SIZEOF_SIZE_T doesn't exist on AIX and POWER8 (ppc64le), keep using SIZEOF_LONG --- ext/mbstring/oniguruma/src/regint.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/mbstring/oniguruma/src/regint.h b/ext/mbstring/oniguruma/src/regint.h index c33bc4e261..4c9853b39d 100644 --- a/ext/mbstring/oniguruma/src/regint.h +++ b/ext/mbstring/oniguruma/src/regint.h @@ -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 \ -- 2.50.1