diff options
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r-- | src/if_ruby.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c index 2ee329bcf..8003d4c88 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -170,7 +170,10 @@ static void ruby_vim_init(void); #define rb_str_cat dll_rb_str_cat #define rb_str_concat dll_rb_str_concat #define rb_str_new dll_rb_str_new -#define rb_str_new2 dll_rb_str_new2 +/* Ruby may also define rb_str_new2. */ +#ifndef rb_str_new2 +# define rb_str_new2 dll_rb_str_new2 +#endif #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18 # define rb_string_value_ptr dll_rb_string_value_ptr # define rb_float_new dll_rb_float_new |