Merge branch 'python'
* python: Define PY_SSIZE_T_CLEAN macro Python: define PY_SSIZE_T_CLEAN Conflicts: CHANGES.current
This commit is contained in:
commit
7f009eddf0
3 changed files with 17 additions and 1 deletions
|
|
@ -29,7 +29,9 @@ As far as I know, this module is C++ safe.
|
|||
#endif
|
||||
|
||||
%wrapper %{
|
||||
|
||||
#ifndef SWIG_NO_PY_SSIZE_T_CLEAN
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#endif
|
||||
#include <Python.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
|
|
@ -11,6 +11,9 @@
|
|||
# include <corecrt.h>
|
||||
#endif
|
||||
|
||||
#ifndef SWIG_NO_PY_SSIZE_T_CLEAN
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#endif
|
||||
#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
|
||||
/* Use debug wrappers with the Python release dll */
|
||||
# undef _DEBUG
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue