summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Meissner <wmeissner@gmail.com>2012-04-07 12:24:01 -0700
committerWayne Meissner <wmeissner@gmail.com>2012-04-07 12:24:01 -0700
commitdea52a19adf4a490699c54a609fefe8f6d015423 (patch)
tree8788b9c702976b8714339e630c28ffd8087a055c
parentc614d75a8a6414f1f981e21fa484f4deb71065e0 (diff)
parent8115eb3dd4429fdcaf114d588e46e36d82157adb (diff)
downloadffi-dea52a19adf4a490699c54a609fefe8f6d015423.tar.gz
Merge pull request #199 from djberg96/patch-1
Use the appropriate runtime library on Windows. This is necessary for ve...
-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