summaryrefslogtreecommitdiff
path: root/Lib/python/pyruntime.swg
diff options
context:
space:
mode:
authorMarcelo Matus <mmatus@acms.arizona.edu>2004-10-02 17:54:38 +0000
committerMarcelo Matus <mmatus@acms.arizona.edu>2004-10-02 17:54:38 +0000
commit983d4abe428f3727f67253284894c06a305b2819 (patch)
treea20f7dec16d04fcb4b7985be967c89b04e21553f /Lib/python/pyruntime.swg
parent45eb8849fde8d52b159c150534b2065de966c2b4 (diff)
downloadswig-983d4abe428f3727f67253284894c06a305b2819.tar.gz
add John Lenz patch for avoiding the runtime library, but allowing the old approach to coexist
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6288 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/python/pyruntime.swg')
-rw-r--r--Lib/python/pyruntime.swg18
1 files changed, 18 insertions, 0 deletions
diff --git a/Lib/python/pyruntime.swg b/Lib/python/pyruntime.swg
index aa79e20b6..5187454ac 100644
--- a/Lib/python/pyruntime.swg
+++ b/Lib/python/pyruntime.swg
@@ -5,5 +5,23 @@
%}
%insert(runtime) "precommon.swg";
+%insert(runtime) %{
+
+#ifndef SWIG_ALLOW_RUNTIME
+/* -----------------------------------------------------------------------------
+ * Disable runtime library use, everything is used as static
+ * ----------------------------------------------------------------------------- */
+#ifndef SWIG_DISABLE_RUNTIME
+#define SWIG_DISABLE_RUNTIME
+#endif
+#ifdef SWIG_GLOBAL
+#undef SWIG_GLOBAL
+#endif
+#ifdef SWIG_NOINCLUDE
+#undef SWIG_NOINCLUDE
+#endif
+#endif /* SWIG_ALLOW_RUNTIME */
+
+%}
%insert(runtime) "common.swg"; /* Common type-checking code */
%insert(runtime) "pyrun.swg"; /* Python run-time code */