summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-05-05 22:57:40 +0900
committerGitHub <[email protected]>2020-05-05 22:57:40 +0900
commit8c04379a4c874ad1c3e576264c0d6a16b5ac6688 (patch)
tree4f4f8b7d427b1c5b3babc18f4a60b694b8d1fa6e
parent84aad39940b21e7ad8ae653198775215a28abf92 (diff)
parenta5bfe548d731f0d5b824b81103041403f3116246 (diff)
downloadmruby-8c04379a4c874ad1c3e576264c0d6a16b5ac6688.tar.gz
mruby-8c04379a4c874ad1c3e576264c0d6a16b5ac6688.zip
Merge pull request #4990 from komainu8/enable-method-t-struct-on-32bit-linux
Enable MRB_METHOD_T_STRUCT by default on 32bit GUN/Linux
-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