summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Berger <djberg96@gmail.com>2012-04-07 11:18:49 -0600
committerDaniel Berger <djberg96@gmail.com>2012-04-07 11:18:49 -0600
commit8115eb3dd4429fdcaf114d588e46e36d82157adb (patch)
tree8788b9c702976b8714339e630c28ffd8087a055c
parentc614d75a8a6414f1f981e21fa484f4deb71065e0 (diff)
downloadffi-8115eb3dd4429fdcaf114d588e46e36d82157adb.tar.gz
Use the appropriate runtime library on Windows. This is necessary for versions of Ruby built with MSVC++, where the runtime is actually msvcr100.dll, for example.
-rw-r--r--lib/ffi/platform.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ffi/platform.rb b/lib/ffi/platform.rb
index 6a2fca7..4021733 100644
--- a/lib/ffi/platform.rb
+++ b/lib/ffi/platform.rb
@@ -90,7 +90,7 @@ module FFI
end
LIBC = if IS_WINDOWS
- "msvcrt.dll"
+ RbConfig::CONFIG['RUBY_SO_NAME'].split('-')[-2] + '.dll'
elsif IS_GNU
GNU_LIBC
else