Commit a5bfe548 authored by Horimoto Yasuhiro's avatar Horimoto Yasuhiro

Enable MRB_METHOD_T_STRUCT by default on 32bit GUN/Linux

Because we can't use the highest 2 bits of function pointers.
parent 84aad399
...@@ -39,8 +39,9 @@ ...@@ -39,8 +39,9 @@
/* add -DMRB_METHOD_T_STRUCT on machines that use higher bits of pointers */ /* 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 */ /* no MRB_METHOD_T_STRUCT requires highest 2 bits of function pointers to be zero */
#ifndef MRB_METHOD_T_STRUCT #ifndef MRB_METHOD_T_STRUCT
// can't use highest 2 bits of function pointers on 32bit Windows. // can't use highest 2 bits of function pointers at least on 32bit
# if defined(_WIN32) && !defined(_WIN64) // Windows and 32bit Linux.
# ifdef MRB_32BIT
# define MRB_METHOD_T_STRUCT # define MRB_METHOD_T_STRUCT
# endif # endif
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment