Renamed mac to osx

This commit is contained in:
Andrea Cavalli 2020-08-23 19:34:08 +02:00
parent b2bf41e2ff
commit 95ff3562f4
1 changed files with 12 additions and 3 deletions

View File

@ -161,14 +161,23 @@ public class LoadLibrary {
if (os.contains("windows"))
return Os.win;
if (os.contains("mac"))
return Os.mac;
return Os.osx;
if (os.contains("darwin"))
return Os.mac;
return Os.osx;
return Os.unknown;
}
private static String getExt(Os os) {
return (os == Os.win) ? ".dll" : ".so";
switch (os) {
case win:
return ".dll";
case osx:
return ".dylib";
case linux:
case unknown:
default:
return ".so";
}
}
private static String createPath(String... path) {