Skip to content

Commit

Permalink
Temporary fix on xprs_ccall to work on 0.6 and 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimg committed Mar 15, 2017
1 parent 469ddb5 commit 6fe4193
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xprs_common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ macro xprs_ccall(func, args...)
is_unix() && return quote
ccall(($f,xprs), $(args...))
end
is_windows() && return quote
is_windows() && VERSION < v"0.6-" && return quote
ccall(($f,xprs), stdcall, $(args...))
end
is_windows() && VERSION >= v"0.6-" && return quote
ccall(($f,xprs), $(esc(:stdcall)), $(args...))
end
end
Expand Down

0 comments on commit 6fe4193

Please sign in to comment.