Skip to content

Commit e322fb0

Browse files
committed
SIZEOF_SIZE_T doesn't exist on AIX, keep using SIZEOF_LONG
Follow up for 3689b44
1 parent 2f62ad1 commit e322fb0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ext/mbstring/oniguruma/regint.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,11 @@
227227
} while(0)
228228

229229
/* sizeof(OnigCodePoint) */
230-
#define WORD_ALIGNMENT_SIZE SIZEOF_SIZE_T
230+
#ifdef SIZEOF_SIZE_T
231+
# define WORD_ALIGNMENT_SIZE SIZEOF_SIZE_T
232+
#else
233+
# define WORD_ALIGNMENT_SIZE SIZEOF_LONG
234+
#endif
231235

232236
#define GET_ALIGNMENT_PAD_SIZE(addr,pad_size) do {\
233237
(pad_size) = WORD_ALIGNMENT_SIZE \

0 commit comments

Comments
 (0)