tUse cross-version compatible OS checks - Granular.jl - Julia package for granular dynamics simulation
HTML git clone git://src.adamsgaard.dk/Granular.jl
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit ba27e7cf2151993e2d59aa43b13401a7aea19e5d
DIR parent da0c7ed57ed9892a46635cc656cd2f6ad2af4c74
HTML Author: Anders Damsgaard <andersd@riseup.net>
Date: Tue, 2 Jan 2018 13:55:24 -0500
Use cross-version compatible OS checks
Diffstat:
M src/io.jl | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
DIR diff --git a/src/io.jl b/src/io.jl
t@@ -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