diff --git a/lib/fast_excel/binding.rb b/lib/fast_excel/binding.rb
index <HASH>..<HASH> 100644
--- a/lib/fast_excel/binding.rb
+++ b/lib/fast_excel/binding.rb
@@ -7,6 +7,8 @@ module Libxlsxwriter
 
   LIB_FILENAME = if RUBY_PLATFORM =~ /darwin/
     "libxlsxwriter.dylib"
+  elsif ['x64-mingw32', 'i386-mingw32'].include? RUBY_PLATFORM
+    "libxlsxwriter.dll"
   else
     "libxlsxwriter.so"
   end
Fix for ffi library loading issue on Windows (issue #<I>).