mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
deploy-stub: forward compat with Python 4.0
This commit is contained in:
parent
54238e9730
commit
a94914fd86
@ -25,7 +25,7 @@
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
# include <locale.h>
|
||||
|
||||
# if PY_MINOR_VERSION < 5
|
||||
# if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION < 5
|
||||
# define Py_DecodeLocale _Py_char2wchar
|
||||
# endif
|
||||
#endif
|
||||
@ -550,7 +550,7 @@ int Py_FrozenMain(int argc, char **argv)
|
||||
error:
|
||||
if (argv_copy2) {
|
||||
for (i = 0; i < argc; i++) {
|
||||
#if PY_MINOR_VERSION >= 4
|
||||
#if PY_MAJOR_VERSION > 3 || PY_MINOR_VERSION >= 4
|
||||
PyMem_RawFree(argv_copy2[i]);
|
||||
#else
|
||||
PyMem_Free(argv_copy2[i]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user