Kaydet (Commit) 43285d4d authored tarafından Jack Jansen's avatar Jack Jansen

CGMainDisplayID() doesn't exist on 10.1, so don't try to call it when

building for that platform.
üst aa2e4982
......@@ -439,9 +439,16 @@ MacOS_WMAvailable(PyObject *self, PyObject *args)
** It appears the function caches the result itself, and it's cheap, so
** no need for us to cache.
*/
#ifdef kCGNullDirectDisplay
/* On 10.1 CGMainDisplayID() isn't available, and
** kCGNullDirectDisplay isn't defined.
*/
if (CGMainDisplayID() == 0) {
rv = Py_False;
} else {
#else
{
#endif
if (GetCurrentProcess(&psn) < 0 ||
SetFrontProcess(&psn) < 0) {
rv = Py_False;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment