Skip to content

Commit

Permalink
0.5-nightly compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Jul 8, 2016
1 parent 46e12f0 commit f243541
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ function osx_version_string()
if isempty(OSX_VERSION[1])
OSX_VERSION[1] = join(split(readchomp(`sw_vers -productVersion`), ".")[1:2],".")
end
return [
return @compat Dict(
"10.4" => "tiger",
"10.5" => "leopard",
"10.6" => "snow_leopard",
Expand All @@ -543,8 +543,8 @@ function osx_version_string()
"10.9" => "mavericks",
"10.10" => "yosemite",
"10.11" => "el_capitan",
"10.12" => "sierra",
][OSX_VERSION[1]]
"10.12" => "sierra"
)[OSX_VERSION[1]]
end

"""
Expand Down

0 comments on commit f243541

Please sign in to comment.