Skip to content

Commit

Permalink
Merge pull request #25 from drewrobson/master
Browse files Browse the repository at this point in the history
Fix libz not found on Windows (use zlib1 instead)
  • Loading branch information
simonster committed Apr 4, 2014
2 parents fb6e5ae + 9540906 commit 9b7812c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MAT_v5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ function getvarnames(matfile::Matlabv5File)
dest = zeros(Uint8, 1024)
dest_buf_size = Int[1024]

ret = ccall((:uncompress, "libz"), Int32, (Ptr{Uint}, Ptr{Uint}, Ptr{Uint}, Uint),
ret = ccall((:uncompress, @windows ? "zlib1" : "libz"), Int32, (Ptr{Uint}, Ptr{Uint}, Ptr{Uint}, Uint),
dest, dest_buf_size, source, length(source))

# Zlib may complain because the buffer is small or the data are incomplete
Expand Down

0 comments on commit 9b7812c

Please sign in to comment.