Browse Source

deploy-ng: fix missing Py_DecodeLocale definition error

rdb 9 years ago
parent
commit
0002030e86
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pandatool/src/deploy-stub/deploy-stub.c

+ 4 - 0
pandatool/src/deploy-stub/deploy-stub.c

@@ -9,6 +9,10 @@
 
 #if PY_MAJOR_VERSION >= 3
 #include <locale.h>
+
+#if PY_MINOR_VERSION < 5
+#define Py_DecodeLocale _Py_char2wchar
+#endif
 #endif
 
 #ifdef MS_WINDOWS