* XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
PlatformID.MacOSX now exists.
svn path=/trunk/mcs/; revision=119637
+2008-11-21 Geoff Norton <gnorton@novell.com>
+
+ * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
+ PlatformID.MacOSX now exists.
+
2008-11-20 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
public static bool RunningOnUnix {
get {
#if NET_2_0
- return (Environment.OSVersion.Platform == PlatformID.Unix);
+ return (Environment.OSVersion.Platform == PlatformID.Unix || Environment.OSVersion.Platform == PlatformID.MacOSX);
#else
int platform = (int) Environment.OSVersion.Platform;
return (platform == 128);