summaryrefslogtreecommitdiffstats
path: root/Include/cpython/initconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/cpython/initconfig.h')
-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 09f9a29..583165b 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 ----------------------------------------------- */
@@ -239,5 +242,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 */