summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 818c760901..b98d6fb991 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -37,6 +37,10 @@
_Py_GetRefTotal())
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern char *Py_GetPath(void);
extern grammar _PyParser_Grammar; /* From graminit.c */
@@ -1692,3 +1696,8 @@ PyParser_SimpleParseString(const char *str, int start)
{
return PyParser_SimpleParseStringFlags(str, start, 0);
}
+
+#ifdef __cplusplus
+}
+#endif
+