summaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-02 02:01:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-02 02:01:48 +0000
commit61c490b82653bb9f3458b56a26806846696b59f0 (patch)
tree72abc033de81c810b9f1b0db6910f815c9ed7119 /ruby.c
parent14760f7beff6a1f281f2c5a8bedd8048ad0f8e9a (diff)
downloadruby-61c490b82653bb9f3458b56a26806846696b59f0.tar.gz
ruby-61c490b82653bb9f3458b56a26806846696b59f0.tar.xz
ruby-61c490b82653bb9f3458b56a26806846696b59f0.zip
* 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
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c6
1 files changed, 6 insertions, 0 deletions
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);