Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b941825

Browse files
committed
Fix PyGC_Collect() to be exported from the built DLL on Windows. (Fix given
by Matt Messier).
1 parent 08e301f commit b941825

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Include/objimpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ PyAPI_FUNC(PyVarObject *) _PyObject_NewVar(PyTypeObject *, int);
229229
*/
230230

231231
/* C equivalent of gc.collect(). */
232-
long PyGC_Collect(void);
232+
PyAPI_FUNC(long) PyGC_Collect(void);
233233

234234
/* Test if a type has a GC head */
235235
#define PyType_IS_GC(t) PyType_HasFeature((t), Py_TPFLAGS_HAVE_GC)

0 commit comments

Comments
 (0)