Skip to content

Commit

Permalink
Export _PyDict_Pop() for _socket extension
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Aug 24, 2023
1 parent e69215f commit 814f867
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Include/internal/pycore_dict.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ extern PyObject* _PyDict_NewPresized(Py_ssize_t minused);
// Export for '_ctypes' shared extension
PyAPI_FUNC(Py_ssize_t) _PyDict_SizeOf(PyDictObject *);

extern PyObject* _PyDict_Pop(PyObject *, PyObject *, PyObject *);
// Export for '_socket' shared extension (Windows remove_unusable_flags())
PyAPI_FUNC(PyObject*) _PyDict_Pop(PyObject *, PyObject *, PyObject *);

#define _PyDict_HasSplitTable(d) ((d)->ma_values != NULL)

Expand Down
1 change: 1 addition & 0 deletions Modules/socketmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ Local naming conventions:
#endif

#include "Python.h"
#include "pycore_dict.h" // _PyDict_Pop()
#include "pycore_fileutils.h" // _Py_set_inheritable()
#include "pycore_moduleobject.h" // _PyModule_GetState

Expand Down

0 comments on commit 814f867

Please sign in to comment.