mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-90005: Port _ctypes to PY_STDLIB_MOD (GH-32229)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Automerge-Triggered-By: GH:tiran
This commit is contained in:
parent
cc0d5e568e
commit
bb8b931385
9 changed files with 660 additions and 147 deletions
|
@ -136,7 +136,7 @@
|
|||
#
|
||||
|
||||
# needs -lffi and -ldl
|
||||
#@MODULE__CTYPES_TRUE@_ctypes _ctypes/_ctypes.c _ctypes/callbacks.c _ctypes/callproc.c _ctypes/stgdict.c _ctypes/cfield.c
|
||||
@MODULE__CTYPES_TRUE@_ctypes _ctypes/_ctypes.c _ctypes/callbacks.c _ctypes/callproc.c _ctypes/stgdict.c _ctypes/cfield.c @MODULE__CTYPES_MALLOC_CLOSURE@
|
||||
|
||||
# needs -lncurses, -lncursesw or -lcurses, sometimes -ltermcap
|
||||
#@MODULE__CURSES_TRUE@_curses _cursesmodule.c
|
||||
|
|
|
@ -54,6 +54,9 @@
|
|||
|
||||
*/
|
||||
|
||||
#ifndef Py_BUILD_CORE_BUILTIN
|
||||
# define Py_BUILD_CORE_MODULE 1
|
||||
#endif
|
||||
#define NEEDS_PY_IDENTIFIER
|
||||
|
||||
#include "Python.h"
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
#ifndef Py_BUILD_CORE_BUILTIN
|
||||
# define Py_BUILD_CORE_MODULE 1
|
||||
#endif
|
||||
#include <Python.h>
|
||||
#include <ffi.h>
|
||||
#ifdef MS_WIN32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue