Skip to content

Commit

Permalink
Issue #627: Fix build error when deployment target is 15.0 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldoussoren committed Oct 27, 2024
1 parent f42fa0b commit 7448193
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyobjc-framework-Quartz/Modules/_coregraphics.m
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@
return rv;
}

#if defined(MAC_OS_X_VERSION_15_0) && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_15_0
static PyObject*
m_CGWindowListCreateImageFromArray(PyObject* self __attribute__((__unused__)),
PyObject* args)
Expand Down Expand Up @@ -264,6 +265,7 @@
CFRelease(image);
return rv;
}
#endif /* defined(MAC_OS_X_VERSION_15_0) && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_15_0 */

static PyObject*
m_CGBitmapContextCreate(PyObject* self __attribute__((__unused__)), PyObject* args)
Expand Down Expand Up @@ -622,8 +624,10 @@
{"CGWindowListCreate", (PyCFunction)m_CGWindowListCreate, METH_VARARGS, NULL},
{"CGWindowListCreateDescriptionFromArray",
(PyCFunction)m_CGWindowListCreateDescriptionFromArray, METH_VARARGS, NULL},
#if defined(MAC_OS_X_VERSION_15_0) && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_15_0
{"CGWindowListCreateImageFromArray", (PyCFunction)m_CGWindowListCreateImageFromArray,
METH_VARARGS, NULL},
#endif /* defined(MAC_OS_X_VERSION_15_0) && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_15_0 */
{"CGBitmapContextCreate", (PyCFunction)m_CGBitmapContextCreate, METH_VARARGS, NULL},
{"CGBitmapContextCreateWithData", (PyCFunction)m_CGBitmapContextCreateWithData,
METH_VARARGS, NULL},
Expand Down

0 comments on commit 7448193

Please sign in to comment.