diff options
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r-- | src/if_ruby.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c index 3767bf334..ac2387857 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -639,7 +639,12 @@ ruby_runtime_link_init(char *libname, int verbose) ruby_enabled(verbose) int verbose; { - return ruby_runtime_link_init(DYNAMIC_RUBY_DLL, verbose) == OK; +#ifdef WIN3264 + char *dll = DYNAMIC_RUBY_DLL; +#else + char *dll = *p_rubydll ? (char *)p_rubydll : DYNAMIC_RUBY_DLL; +#endif + return ruby_runtime_link_init(dll, verbose) == OK; } #endif /* defined(DYNAMIC_RUBY) || defined(PROTO) */ |