diff --git a/unicodedata2/unicodedata.c b/unicodedata2/unicodedata.c index 1a95a8c..764e315 100644 --- a/unicodedata2/unicodedata.c +++ b/unicodedata2/unicodedata.c @@ -17,7 +17,12 @@ #include "Python.h" #ifndef PYPY_VERSION +#if PY_MINOR_VERSION < 10 #include "ucnhash.h" +#else +#define Py_BUILD_CORE +#include "internal/pycore_ucnhash.h" +#endif #endif #include "structmember.h" #include "unicodectype.h"