Author: spouliot
Date: 2005-05-09 16:00:22 -0400 (Mon, 09 May 2005)
New Revision: 44297

Modified:
   
trunk/mcs/class/System/System.Collections.Specialized/ProcessStringDictionary.cs
Log:
Check platform without using #define

Modified: 
trunk/mcs/class/System/System.Collections.Specialized/ProcessStringDictionary.cs
===================================================================
--- 
trunk/mcs/class/System/System.Collections.Specialized/ProcessStringDictionary.cs
    2005-05-09 19:56:14 UTC (rev 44296)
+++ 
trunk/mcs/class/System/System.Collections.Specialized/ProcessStringDictionary.cs
    2005-05-09 20:00:22 UTC (rev 44297)
@@ -43,11 +43,11 @@
                {
                        IHashCodeProvider hash_provider = null;
                        IComparer comparer = null;
-#if NET_2_0
-                       if (Environment.OSVersion.Platform != PlatformID.Unix) {
-#else
-                       if ((int) Environment.OSVersion.Platform != 128) {
-#endif
+
+                       // check for non-Unix platforms - see FAQ for more 
details
+                       // 
http://www.mono-project.com/FAQ:_Technical#How_to_detect_the_execution_platform_.3F
+                       int platform = (int) Environment.OSVersion.Platform;
+                       if ((platform != 4) && (platform != 128)) {
                                hash_provider = 
CaseInsensitiveHashCodeProvider.DefaultInvariant;
                                comparer = 
CaseInsensitiveComparer.DefaultInvariant;
                        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to