From a5bfe548d731f0d5b824b81103041403f3116246 Mon Sep 17 00:00:00 2001 From: Horimoto Yasuhiro Date: Thu, 30 Apr 2020 16:22:23 +0900 Subject: Enable MRB_METHOD_T_STRUCT by default on 32bit GUN/Linux Because we can't use the highest 2 bits of function pointers. --- include/mrbconf.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/mrbconf.h b/include/mrbconf.h index 35762a8f0..2b1adb24e 100644 --- a/include/mrbconf.h +++ b/include/mrbconf.h @@ -39,8 +39,9 @@ /* add -DMRB_METHOD_T_STRUCT on machines that use higher bits of pointers */ /* no MRB_METHOD_T_STRUCT requires highest 2 bits of function pointers to be zero */ #ifndef MRB_METHOD_T_STRUCT - // can't use highest 2 bits of function pointers on 32bit Windows. -# if defined(_WIN32) && !defined(_WIN64) + // can't use highest 2 bits of function pointers at least on 32bit + // Windows and 32bit Linux. +# ifdef MRB_32BIT # define MRB_METHOD_T_STRUCT # endif #endif -- cgit v1.2.3