diff --git a/cbits/python.c b/cbits/python.c index ce473f1..62c33e2 100644 --- a/cbits/python.c +++ b/cbits/python.c @@ -43,9 +43,6 @@ PyObject *inline_py_function_wrapper(PyCFunction fun, int flags) { return f; } -// HACK: Simply copied from GHC sources. I hope it's stable enough -void freeHaskellFunctionPtr (void* ptr); - void inline_py_free_capsule(PyObject* py) { PyMethodDef *meth = PyCapsule_GetPointer(py, NULL); // HACK: We want to release wrappers created by wrapper. It diff --git a/include/inline-python.h b/include/inline-python.h index 79b4215..416e37c 100644 --- a/include/inline-python.h +++ b/include/inline-python.h @@ -2,6 +2,8 @@ #define PY_SSIZE_T_CLEAN #include +#include + // Standard status codesu #define INLINE_PY_OK 0