Skip to content

Commit 44409e0

Browse files
authored
Python 3.10 compatibility (#49)
Overstep python/cpython#22713
1 parent d10ce5c commit 44409e0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

unicodedata2/unicodedata.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717

1818
#include "Python.h"
1919
#ifndef PYPY_VERSION
20+
#if PY_MINOR_VERSION < 10
2021
#include "ucnhash.h"
22+
#else
23+
#define Py_BUILD_CORE
24+
#include "internal/pycore_ucnhash.h"
25+
#endif
2126
#endif
2227
#include "structmember.h"
2328
#include "unicodectype.h"

0 commit comments

Comments
 (0)