New test.
[mono.git] / mono / tests / cas / demand / pinvoke1.cs
index 512f083494e9b50d4bc09e1d409a180088db24a7..0508d11d09fe4b15b89c3be2e56cf46796617c21 100644 (file)
@@ -14,7 +14,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;
        }