Skip to content

Commit 49abf86

Browse files
author
Paweł Andruszkiewicz
committed
Fix Windows build with Python 3.13
The _PyOS_SigintEvent() function was moved to an internal header, added a forward declaration. Change-Id: Icf0b30cfa46e1ce66a2879f1df35a3caa87e46b2
1 parent 4441bf0 commit 49abf86

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mysqlshdk/shellcore/shell_python.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535

3636
#if defined(_WIN32)
3737
#include <windows.h>
38+
39+
#if PY_VERSION_HEX >= 0x030D0000
40+
// in Python 3.13 this function was moved to an internal header
41+
extern "C" PyAPI_FUNC(void *) _PyOS_SigintEvent(void);
42+
#endif
3843
#endif
3944

4045
using namespace shcore;

0 commit comments

Comments
 (0)