diff --git a/src/c/_cffi_backend.c b/src/c/_cffi_backend.c index 602117e3..89676f44 100644 --- a/src/c/_cffi_backend.c +++ b/src/c/_cffi_backend.c @@ -204,6 +204,10 @@ # define USE_WRITEUNRAISABLEMSG #endif +#if PY_VERSION_HEX >= 0x030c0000 +# define Py_FileSystemDefaultEncoding PyConfig.filesystem_encoding +#endif + /************************************************************/ /* base type flag: exactly one of the following: */