X Tutup
Skip to content

Commit 5dbc723

Browse files
committed
DL_IMPORT macro was called in a funny way (and MW barfed on it)
1 parent d39f5f6 commit 5dbc723

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Include/object.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ typedef struct _typeobject {
237237
#endif
238238
} PyTypeObject;
239239

240-
extern DL_IMPORT(PyTypeObject) PyType_Type; /* The type of type objects */
240+
extern DL_IMPORT PyTypeObject PyType_Type; /* The type of type objects */
241241

242242
#define PyType_Check(op) ((op)->ob_type == &PyType_Type)
243243

@@ -354,7 +354,7 @@ where NULL (nil) is not suitable (since NULL often means 'error').
354354
Don't forget to apply Py_INCREF() when returning this value!!!
355355
*/
356356

357-
extern DL_IMPORT(PyObject) _Py_NoneStruct; /* Don't use this directly */
357+
extern DL_IMPORT PyObject _Py_NoneStruct; /* Don't use this directly */
358358

359359
#define Py_None (&_Py_NoneStruct)
360360

Include/tupleobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ typedef struct {
4949
PyObject *ob_item[1];
5050
} PyTupleObject;
5151

52-
extern DL_IMPORT(PyTypeObject) PyTuple_Type;
52+
extern DL_IMPORT PyTypeObject PyTuple_Type;
5353

5454
#define PyTuple_Check(op) ((op)->ob_type == &PyTuple_Type)
5555

0 commit comments

Comments
 (0)
X Tutup