1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Adjust struct member offset for i386 Cygwin

Fixes [Bug #17606]
This commit is contained in:
xtkoba 2021-04-30 21:35:15 +09:00 committed by Nobuyoshi Nakada
parent f64d7674f6
commit 121fa24a34
Notes: git 2021-05-01 11:04:39 +09:00

View file

@ -218,6 +218,10 @@ struct rb_control_frame_struct;
/* iseq data type */
typedef struct rb_compile_option_struct rb_compile_option_t;
#if (SIZEOF_SERIAL_T > SIZEOF_VOIDP) && defined(__CYGWIN__)
#pragma pack(push, 4) /* == SIZEOF_VOIDP */
#endif
// imemo_constcache
struct iseq_inline_constant_cache_entry {
VALUE flags;
@ -228,6 +232,10 @@ struct iseq_inline_constant_cache_entry {
// v3
};
#if (SIZEOF_SERIAL_T > SIZEOF_VOIDP) && defined(__CYGWIN__)
#pragma pack(pop)
#endif
struct iseq_inline_constant_cache {
struct iseq_inline_constant_cache_entry *entry;
};