Skip to content

Commit d2d784b

Browse files
committed
gh-85283: _scproxy uses the limited C API
The _scproxy (macOS) C extension is now built with the limited C API.
1 parent 4116592 commit d2d784b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The ``_scproxy`` (macOS) C extension is now built with the :ref:`limited C API
2+
<limited-c-api>`. Patch by Victor Stinner.

Modules/_scproxy.c

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Helper method for urllib to fetch the proxy configuration settings
33
* using the SystemConfiguration framework.
44
*/
5+
#define Py_LIMITED_API 0x030d0000
6+
57
#include <Python.h>
68
#include <SystemConfiguration/SystemConfiguration.h>
79

0 commit comments

Comments
 (0)