We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4173d67 commit 0b63215Copy full SHA for 0b63215
Include/moduleobject.h
@@ -55,14 +55,12 @@ typedef struct PyModuleDef_Base {
55
NULL, /* m_copy */ \
56
}
57
58
-struct PyModuleDef_Slot;
59
-
60
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
61
/* New in 3.5 */
62
-typedef struct PyModuleDef_Slot{
+struct PyModuleDef_Slot {
63
int slot;
64
void *value;
65
-} PyModuleDef_Slot;
+};
66
67
#define Py_mod_create 1
68
#define Py_mod_exec 2
Include/pytypedefs.h
@@ -10,6 +10,7 @@ extern "C" {
10
#endif
11
12
typedef struct PyModuleDef PyModuleDef;
13
+typedef struct PyModuleDef_Slot PyModuleDef_Slot;
14
typedef struct PyMethodDef PyMethodDef;
15
typedef struct PyGetSetDef PyGetSetDef;
16
typedef struct PyMemberDef PyMemberDef;
0 commit comments