mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
Merge branch 'release/1.10.x'
This commit is contained in:
commit
ffa0c74402
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user