Skip to content

Commit

Permalink
use Cvoid instead of Void (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
bicycle1885 authored Jan 3, 2018
1 parent 7bbef28 commit a1d470a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/CodecZlib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ function splitkwargs(kwargs, keys)
return hits, others
end

# For compatibility.
if !isdefined(Base, :Cvoid)
const Cvoid = Void
end

include("libz.jl")
include("compression.jl")
include("decompression.jl")
Expand Down
8 changes: 4 additions & 4 deletions src/libz.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ mutable struct ZStream
total_out::Culong

msg::Ptr{UInt8}
state::Ptr{Void}
state::Ptr{Cvoid}

zalloc::Ptr{Void}
zfree::Ptr{Void}
opaque::Ptr{Void}
zalloc::Ptr{Cvoid}
zfree::Ptr{Cvoid}
opaque::Ptr{Cvoid}

data_type::Cint

Expand Down

0 comments on commit a1d470a

Please sign in to comment.