Author: spouliot
Date: 2005-05-09 12:04:01 -0400 (Mon, 09 May 2005)
New Revision: 44288
Modified:
trunk/mcs/class/Mono.GetOptions/Mono.GetOptions/Options.cs
Log:
Use PlatformID.Unix under NET_2_0.
Modified: trunk/mcs/class/Mono.GetOptions/Mono.GetOptions/Options.cs
===================================================================
--- trunk/mcs/class/Mono.GetOptions/Mono.GetOptions/Options.cs 2005-05-09
15:57:52 UTC (rev 44287)
+++ trunk/mcs/class/Mono.GetOptions/Mono.GetOptions/Options.cs 2005-05-09
16:04:01 UTC (rev 44288)
@@ -61,7 +61,11 @@
protected virtual void InitializeOtherDefaults() { } // Only
subclasses may need to implement something here
+#if NET_2_0
+ public bool RunningOnWindows { get { return PlatformID.Unix !=
Environment.OSVersion.Platform; } }
+#else
public bool RunningOnWindows { get { return 128 !=
(int)Environment.OSVersion.Platform; } }
+#endif
#region non-option arguments
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches