Merge branch 'release/1.10.x'

This commit is contained in:
rdb 2019-01-26 20:18:02 +01:00
commit ffa0c74402
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@
#include "dtoolbase.h"
#include "selectThreadImpl.h"
#if (defined(__i386__) || defined(_M_IX86)) && !defined(__APPLE__)
#if (defined(__i386__) || defined(_M_IX86)) && !defined(__APPLE__) && !defined(__ANDROID__)
#include "numeric_types.h"

View File

@ -4701,7 +4701,7 @@ write_function_instance(ostream &out, FunctionRemap *remap,
if (is_optional) {
extra_convert
<< "wchar_t *" << param_name << "_str;\n"
<< "wchar_t *" << param_name << "_str = nullptr;\n"
<< "if (" << param_name << " != nullptr) {\n"
<< "#if PY_VERSION_HEX >= 0x03030000\n"
<< " " << param_name << "_str = PyUnicode_AsWideCharString(" << param_name << ", nullptr);\n"
@ -4748,7 +4748,7 @@ write_function_instance(ostream &out, FunctionRemap *remap,
if (is_optional) {
extra_convert
<< "Py_ssize_t " << param_name << "_len;\n"
<< "wchar_t *" << param_name << "_str;\n"
<< "wchar_t *" << param_name << "_str = nullptr;\n"
<< "std::wstring " << param_name << "_wstr;\n"
<< "if (" << param_name << " != nullptr) {\n"
<< "#if PY_VERSION_HEX >= 0x03030000\n"