-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch hunspell to hopefully build on python 3.12
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/hunspell/hunspell.cpp b/hunspell/hunspell.cpp | ||
index 27ff298..efccd2e 100644 | ||
--- a/hunspell/hunspell.cpp | ||
+++ b/hunspell/hunspell.cpp | ||
@@ -229,17 +229,17 @@ END: Cython Metadata */ | ||
#define CYTHON_USE_ASYNC_SLOTS 0 | ||
#elif !defined(CYTHON_USE_ASYNC_SLOTS) | ||
#define CYTHON_USE_ASYNC_SLOTS 1 | ||
#endif | ||
#if PY_VERSION_HEX < 0x02070000 | ||
#undef CYTHON_USE_PYLONG_INTERNALS | ||
#define CYTHON_USE_PYLONG_INTERNALS 0 | ||
#elif !defined(CYTHON_USE_PYLONG_INTERNALS) | ||
- #define CYTHON_USE_PYLONG_INTERNALS 1 | ||
+ #define CYTHON_USE_PYLONG_INTERNALS (PY_VERSION_HEX < 0x030C00A5) | ||
#endif | ||
#ifndef CYTHON_USE_PYLIST_INTERNALS | ||
#define CYTHON_USE_PYLIST_INTERNALS 1 | ||
#endif | ||
#ifndef CYTHON_USE_UNICODE_INTERNALS | ||
#define CYTHON_USE_UNICODE_INTERNALS 1 | ||
#endif | ||
#if PY_VERSION_HEX < 0x030300F0 || PY_VERSION_HEX >= 0x030B00A2 |