diff --git a/pythoncapi_compat.h b/pythoncapi_compat.h index 8c1822d..7a69f76 100644 --- a/pythoncapi_compat.h +++ b/pythoncapi_compat.h @@ -1968,7 +1968,7 @@ static inline FILE* Py_fopen(PyObject *path, const char *mode) #endif } -int Py_fclose(FILE *file) +static inline int Py_fclose(FILE *file) { return fclose(file); }