Merge pull request #2401 from hramrach/master

Define PY_SSIZE_T_CLEAN only when not defined yet
This commit is contained in:
William S Fulton 2022-10-14 07:56:09 +01:00 committed by GitHub
commit 7334e9c16f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ As far as I know, this module is C++ safe.
#endif
%wrapper %{
#ifndef SWIG_NO_PY_SSIZE_T_CLEAN
#if !defined(PY_SSIZE_T_CLEAN) && !defined(SWIG_NO_PY_SSIZE_T_CLEAN)
#define PY_SSIZE_T_CLEAN
#endif

View file

@ -4,7 +4,7 @@
# include <math.h>
#endif
#ifndef SWIG_NO_PY_SSIZE_T_CLEAN
#if !defined(PY_SSIZE_T_CLEAN) && !defined(SWIG_NO_PY_SSIZE_T_CLEAN)
#define PY_SSIZE_T_CLEAN
#endif