commit ba27e7cf2151993e2d59aa43b13401a7aea19e5d
parent da0c7ed57ed9892a46635cc656cd2f6ad2af4c74
Author: Anders Damsgaard <andersd@riseup.net>
Date: Tue, 2 Jan 2018 13:55:24 -0500
Use cross-version compatible OS checks
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/io.jl b/src/io.jl
@@ -5,15 +5,16 @@ if typeof(Pkg.installed("JLD")) == VersionNumber
import JLD
hasJLD = true
end
+import Compat
using Compat.DelimitedFiles
using Compat.Dates
# load Homebrew/WinRPM for gnuplot and imagemagick
-if is_apple()
+if Compat.Sys.isapple()
using Homebrew
end
-if is_windows()
+if Compat.Sys.iswindows()
using WinRPM
end