summaryrefslogtreecommitdiffstats
path: root/Include/Python.h
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2010-04-17 00:20:57 (GMT)
committerCollin Winter <collinw@gmail.com>2010-04-17 00:20:57 (GMT)
commitdfa66c1dda47ffea27500c871bbc867d2bce29bd (patch)
tree39d1b205ff338ce3f2a68d7199bc94266f394a76 /Include/Python.h
parent28a691b7fdde1b8abafa4c4a5025e6bfa44f48b9 (diff)
downloadcpython-dfa66c1dda47ffea27500c871bbc867d2bce29bd.zip
cpython-dfa66c1dda47ffea27500c871bbc867d2bce29bd.tar.gz
cpython-dfa66c1dda47ffea27500c871bbc867d2bce29bd.tar.bz2
Fix the --with-cxx-main build.
Diffstat (limited to 'Include/Python.h')
-rw-r--r--Include/Python.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h
index 315d6ec..9b26d16 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -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 */