No real changes, just slightly simplify HasAppKit_10_6() function.
Remove redundant check for version == -1. See #13831. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -70,10 +70,8 @@ bool HasAppKit_10_6()
|
|||||||
// case above.
|
// case above.
|
||||||
version = NSVersionOfRunTimeLibrary("AppKit");
|
version = NSVersionOfRunTimeLibrary("AppKit");
|
||||||
}
|
}
|
||||||
if (version == -1)
|
|
||||||
{
|
// Notice that this still works correctly even if version is -1.
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return version >= 0x40e2400 /* version of 10.6 AppKit */;
|
return version >= 0x40e2400 /* version of 10.6 AppKit */;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user