Skip to content

Commit

Permalink
Needed to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonspeed committed Nov 3, 2024
1 parent 5997ac4 commit af18c60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion filpreload/src/_filpreload.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define Py_BUILD_CORE 1
#include "Python.h"
#include "ceval.h"
#include "pyframe.h"
Expand Down Expand Up @@ -27,7 +28,8 @@
#include <errno.h>

#if PY_MINOR_VERSION < 9
PyFrameObject *PyFrame_GetBack(PyFrameObject *frame) {
PyFrameObject *
PyFrame_GetBack(PyFrameObject *frame) {
if (frame->f_back != NULL) {
Py_INCREF(frame->f_back);
}
Expand Down

0 comments on commit af18c60

Please sign in to comment.