1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-19 13:54:23 +01:00
This commit is contained in:
Federico Fissore 2015-08-31 08:45:58 +02:00
parent 649bc6d778
commit d6ea1c05a6

View File

@ -7,7 +7,7 @@ public class OSUtils {
*/
static public boolean isWindows() {
//return PApplet.platform == PConstants.WINDOWS;
return System.getProperty("os.name").indexOf("Windows") != -1;
return System.getProperty("os.name").contains("Windows");
}
/**
@ -15,7 +15,7 @@ public class OSUtils {
*/
static public boolean isLinux() {
//return PApplet.platform == PConstants.LINUX;
return System.getProperty("os.name").indexOf("Linux") != -1;
return System.getProperty("os.name").contains("Linux");
}
/**
@ -23,7 +23,7 @@ public class OSUtils {
*/
static public boolean isMacOS() {
//return PApplet.platform == PConstants.MACOSX;
return System.getProperty("os.name").indexOf("Mac") != -1;
return System.getProperty("os.name").contains("Mac");
}
}