Skip to content

Commit

Permalink
gh-85283: _scproxy uses the limited C API
Browse files Browse the repository at this point in the history
The _scproxy (macOS) C extension is now built with the limited C API.
  • Loading branch information
vstinner committed Aug 28, 2023
1 parent e407cea commit f31fe9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The ``_scproxy`` (macOS) C extension is now built with the :ref:`limited C API
<limited-c-api>`. Patch by Victor Stinner.
2 changes: 2 additions & 0 deletions Modules/_scproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* Helper method for urllib to fetch the proxy configuration settings
* using the SystemConfiguration framework.
*/
#define Py_LIMITED_API 0x030d0000

#include <Python.h>
#include <SystemConfiguration/SystemConfiguration.h>

Expand Down

0 comments on commit f31fe9c

Please sign in to comment.