File tree 1 file changed +3
-3
lines changed
arduino-core/src/processing/app/helpers
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,23 +7,23 @@ public class OSUtils {
7
7
*/
8
8
static public boolean isWindows () {
9
9
//return PApplet.platform == PConstants.WINDOWS;
10
- return System .getProperty ("os.name" ).indexOf ("Windows" ) != - 1 ;
10
+ return System .getProperty ("os.name" ).contains ("Windows" );
11
11
}
12
12
13
13
/**
14
14
* true if running on linux.
15
15
*/
16
16
static public boolean isLinux () {
17
17
//return PApplet.platform == PConstants.LINUX;
18
- return System .getProperty ("os.name" ).indexOf ("Linux" ) != - 1 ;
18
+ return System .getProperty ("os.name" ).contains ("Linux" );
19
19
}
20
20
21
21
/**
22
22
* returns true if Processing is running on a Mac OS X machine.
23
23
*/
24
24
static public boolean isMacOS () {
25
25
//return PApplet.platform == PConstants.MACOSX;
26
- return System .getProperty ("os.name" ).indexOf ("Mac" ) != - 1 ;
26
+ return System .getProperty ("os.name" ).contains ("Mac" );
27
27
}
28
28
29
29
}
You can’t perform that action at this time.
0 commit comments