From 52dd82bb666d5347d49a8c91374ed21356a91ad8 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sun, 18 Dec 2005 00:10:54 +0000 Subject: [PATCH] replace Py_None with safer SWIG_Py_None() git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8001 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/pyrun.swg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg index 424c2b043..474db28e2 100644 --- a/Lib/python/pyrun.swg +++ b/Lib/python/pyrun.swg @@ -96,6 +96,11 @@ SWIG_Py_None(void) return none; } +#ifdef Py_None +# undef Py_None +# define Py_None SWIG_Py_None() +#endif + SWIGRUNTIMEINLINE PyObject * SWIG_Py_Void(void) {