]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45893: Add missing extern C to initconfig.h (GH-29761)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 24 Nov 2021 21:57:41 +0000 (13:57 -0800)
committerGitHub <noreply@github.com>
Wed, 24 Nov 2021 21:57:41 +0000 (13:57 -0800)
Co-authored-by: Steve Dower <steve.dower@python.org>
(cherry picked from commit f4afc53bf68c8ded20b281cd1baa88a679b4a3fd)

Co-authored-by: Christian Heimes <christian@python.org>
.github/workflows/build.yml
Include/cpython/initconfig.h

index 88f825e613bcaa9ec75ffa4ac4516c7feb2c91a1..01b75aedafed5635ed20edac11bdd5fe08e8da3f 100644 (file)
@@ -115,6 +115,8 @@ jobs:
     runs-on: windows-latest
     needs: check_source
     if: needs.check_source.outputs.run_tests == 'true'
+    env:
+       IncludeUwp: 'true'
     steps:
     - uses: actions/checkout@v2
     - name: Build CPython
@@ -129,6 +131,8 @@ jobs:
     runs-on: windows-latest
     needs: check_source
     if: needs.check_source.outputs.run_tests == 'true'
+    env:
+       IncludeUwp: 'true'
     steps:
     - uses: actions/checkout@v2
     - name: Register MSVC problem matcher
index 09f9a2947efef38a01a4a1242477a2f0a26d156e..583165bee48ccc512c5b13d0520464cb1b4acbfc 100644 (file)
@@ -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 */