diff --git a/Lib/ruby/rubyapi.swg b/Lib/ruby/rubyapi.swg index 7883e9e6c..6c5fdfee3 100644 --- a/Lib/ruby/rubyapi.swg +++ b/Lib/ruby/rubyapi.swg @@ -21,6 +21,14 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) { return target; } +// For ruby1.8.4 and earlier. +#ifndef RUBY_INIT_STACK + extern void Init_stack(VALUE* addr); +# define RUBY_INIT_STACK \ + VALUE variable_in_this_stack_frame; \ + Init_stack(&variable_in_this_stack_frame); +#endif + #ifdef __cplusplus } #endif diff --git a/Lib/ruby/rubyhead.swg b/Lib/ruby/rubyhead.swg index d55d49882..bf46dc88d 100644 --- a/Lib/ruby/rubyhead.swg +++ b/Lib/ruby/rubyhead.swg @@ -96,14 +96,5 @@ #endif -// For ruby1.8.4 and earlier. -#ifndef RUBY_INIT_STACK - extern void Init_stack(VALUE* addr); -# define RUBY_INIT_STACK \ - VALUE variable_in_this_stack_frame; \ - Init_stack(&variable_in_this_stack_frame); -#endif - - /* Global module used to keep some internal SWIG stuff */ static VALUE _mSWIG = Qnil;