diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-11-24 21:57:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-24 21:57:41 (GMT) |
commit | cd85d91bc66a587ce2ba668c897a5ecf118733cc (patch) | |
tree | fbbca66882b2b201cd93e66e29278b83b0b795e7 /Include | |
parent | 8cabcde8d66bfd8abc98b862c93c66946f8514a1 (diff) | |
download | cpython-cd85d91bc66a587ce2ba668c897a5ecf118733cc.zip cpython-cd85d91bc66a587ce2ba668c897a5ecf118733cc.tar.gz cpython-cd85d91bc66a587ce2ba668c897a5ecf118733cc.tar.bz2 |
bpo-45893: Add missing extern C to initconfig.h (GH-29761)
Co-authored-by: Steve Dower <steve.dower@python.org>
(cherry picked from commit f4afc53bf68c8ded20b281cd1baa88a679b4a3fd)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/initconfig.h | 6 |
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 */ |