diff Include/Python.h @ 60649:c532afb0fa89

Fix the --with-cxx-main build.
author Collin Winter <collinw@gmail.com>
date Sat, 17 Apr 2010 00:20:57 +0000
parents 62d11785204f
children fe6b6c189bb4
line wrap: on
line diff
--- a/Include/Python.h	Sat Apr 17 00:19:56 2010 +0000
+++ b/Include/Python.h	Sat Apr 17 00:20:57 2010 +0000
@@ -120,11 +120,17 @@
 #include "pystrcmp.h"
 #include "dtoa.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 /* _Py_Mangle is defined in compile.c */
 PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name);
 
 /* _Py_char2wchar lives in python.c */
 PyAPI_FUNC(wchar_t *) _Py_char2wchar(char *);
+#ifdef __cplusplus
+}
+#endif
 
 /* Convert a possibly signed character to a nonnegative int */
 /* XXX This assumes characters are 8 bits wide */