summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2021-11-24 20:12:12 (GMT)
committerGitHub <noreply@github.com>2021-11-24 20:12:12 (GMT)
commitf4afc53bf68c8ded20b281cd1baa88a679b4a3fd (patch)
treee708685db4f4036fd04e62434549344692745c7e /Include
parentd71c7bc7339eb82de493c66ebbbfa1cad250ac78 (diff)
downloadcpython-f4afc53bf68c8ded20b281cd1baa88a679b4a3fd.zip
cpython-f4afc53bf68c8ded20b281cd1baa88a679b4a3fd.tar.gz
cpython-f4afc53bf68c8ded20b281cd1baa88a679b4a3fd.tar.bz2
bpo-45893: Add missing extern C to initconfig.h (GH-29761)
Co-authored-by: Steve Dower <steve.dower@python.org>
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/initconfig.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/cpython/initconfig.h b/Include/cpython/initconfig.h
index 0564100..76f3c52 100644
--- a/Include/cpython/initconfig.h
+++ b/Include/cpython/initconfig.h
@@ -1,6 +1,9 @@
#ifndef Py_PYCORECONFIG_H
#define Py_PYCORECONFIG_H
#ifndef Py_LIMITED_API
+#ifdef __cplusplus
+extern "C" {
+#endif
/* --- PyStatus ----------------------------------------------- */
@@ -243,5 +246,8 @@ PyAPI_FUNC(PyStatus) PyConfig_SetWideStringList(PyConfig *config,
See also PyConfig.orig_argv. */
PyAPI_FUNC(void) Py_GetArgcArgv(int *argc, wchar_t ***argv);
+#ifdef __cplusplus
+}
+#endif
#endif /* !Py_LIMITED_API */
#endif /* !Py_PYCORECONFIG_H */