Skip to content

Commit a94914f

Browse files
committed
deploy-stub: forward compat with Python 4.0
1 parent 54238e9 commit a94914f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandatool/src/deploy-stub/deploy-stub.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#if PY_MAJOR_VERSION >= 3
2626
# include <locale.h>
2727

28-
# if PY_MINOR_VERSION < 5
28+
# if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION < 5
2929
# define Py_DecodeLocale _Py_char2wchar
3030
# endif
3131
#endif
@@ -550,7 +550,7 @@ int Py_FrozenMain(int argc, char **argv)
550550
error:
551551
if (argv_copy2) {
552552
for (i = 0; i < argc; i++) {
553-
#if PY_MINOR_VERSION >= 4
553+
#if PY_MAJOR_VERSION > 3 || PY_MINOR_VERSION >= 4
554554
PyMem_RawFree(argv_copy2[i]);
555555
#else
556556
PyMem_Free(argv_copy2[i]);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy