New test.
[mono.git] / mono / tests / cas / demand / pinvoke2.cs
index 3afd4146e9abbf3298ae4b487c8c3dfe81cd7e8c..6e2823e483319605a369f10b2756799529063e02 100644 (file)
@@ -16,7 +16,8 @@ public class Program {
 
        static bool RunningOnWindows ()
        {
-               bool win = ((int) Environment.OSVersion.Platform != 128);
+               int p = (int) Environment.OSVersion.Platform;
+               bool win = ((p != 4) && (p != 128));
                Console.WriteLine ("Running on {0}...", Environment.OSVersion);
                return win;
        }