summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorHorimoto Yasuhiro <[email protected]>2020-04-30 16:22:23 +0900
committerHorimoto Yasuhiro <[email protected]>2020-05-04 15:34:16 +0900
commita5bfe548d731f0d5b824b81103041403f3116246 (patch)
tree4f4f8b7d427b1c5b3babc18f4a60b694b8d1fa6e /include
parent84aad39940b21e7ad8ae653198775215a28abf92 (diff)
downloadmruby-a5bfe548d731f0d5b824b81103041403f3116246.tar.gz
mruby-a5bfe548d731f0d5b824b81103041403f3116246.zip
Enable MRB_METHOD_T_STRUCT by default on 32bit GUN/Linux
Because we can't use the highest 2 bits of function pointers.
Diffstat (limited to 'include')
-rw-r--r--include/mrbconf.h5
1 files changed, 3 insertions, 2 deletions
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