summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Senneker <john.senneker@arup.com>2021-12-01 15:15:24 -0500
committerJohn Senneker <john.senneker@arup.com>2021-12-01 15:15:24 -0500
commit160b8c5da38ea2c1ef5c23a45cd4e5f65a2f8ec1 (patch)
tree2d5fc06490b495901e8533b4cce335b0879e55a9
parentebe14e6e2ae9ae59d7cbc32877b5e138c194cc5a (diff)
downloadswig-160b8c5da38ea2c1ef5c23a45cd4e5f65a2f8ec1.tar.gz
Added extern "C" block that was removed in previous commit.
-rw-r--r--Lib/python/pyrun.swg8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg
index 17992453b..a49cbb5b3 100644
--- a/Lib/python/pyrun.swg
+++ b/Lib/python/pyrun.swg
@@ -214,6 +214,10 @@ SWIG_Python_CheckNoKeywords(PyObject *kwargs, const char *name) {
#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Python-specific SWIG API */
#define SWIG_newvarlink() SWIG_Python_newvarlink()
#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
@@ -430,6 +434,10 @@ SWIG_globals(void) {
return Swig_Globals_global;
}
+#ifdef __cplusplus
+}
+#endif
+
/* -----------------------------------------------------------------------------
* Pointer declarations
* ----------------------------------------------------------------------------- */