Skip to content

Commit

Permalink
Add condition to allow compilation on python versions <3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
dfangl committed Jan 31, 2025
1 parent d7ec22a commit 2cbabcc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions native/common/jp_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,11 @@ extern "C" JNIEXPORT void JNICALL Java_org_jpype_JPypeSignal_interruptPy
(JNIEnv *env, jclass cls, jint signal)
{
interruptState = 1;
#if PY_MINOR_VERSION<10
PyErr_SetInterrupt();
#else
PyErr_SetInterruptEx((int) signal);
#endif
}

extern "C" JNIEXPORT void JNICALL Java_org_jpype_JPypeSignal_acknowledgePy
Expand Down

0 comments on commit 2cbabcc

Please sign in to comment.