summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 7fc4c97c82..25deaa6919 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -16,6 +16,11 @@ extern char *strerror(int);
#include <ctype.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
void
PyErr_Restore(PyObject *type, PyObject *value, PyObject *traceback)
{
@@ -786,3 +791,8 @@ PyErr_ProgramText(const char *filename, int lineno)
}
return NULL;
}
+
+#ifdef __cplusplus
+}
+#endif
+