From 61c490b82653bb9f3458b56a26806846696b59f0 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 2 Mar 2009 02:01:48 +0000 Subject: * ext/dl/dl.h (dlerror): fixed on Windows. * ext/dl/handle.c (rb_dlhandle_initialize): returns handle to libruby if nil is given on Windows as dlopen. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index ab15cd979..b9a8ce27a 100644 --- a/ruby.c +++ b/ruby.c @@ -325,6 +325,12 @@ DllMain(HINSTANCE dll, DWORD reason, LPVOID reserved) libruby = dll; return TRUE; } + +HANDLE +rb_libruby_handle(void) +{ + return libruby; +} #endif void ruby_init_loadpath_safe(int safe_level); -- cgit