]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45893: Add missing extern C to initconfig.h (GH-29761)
authorChristian Heimes <christian@python.org>
Wed, 24 Nov 2021 20:12:12 +0000 (22:12 +0200)
committerGitHub <noreply@github.com>
Wed, 24 Nov 2021 20:12:12 +0000 (21:12 +0100)
Co-authored-by: Steve Dower <steve.dower@python.org>
.github/workflows/build.yml
Include/cpython/initconfig.h

index a11a368fd8311f0babf3b34693a4fbb53d80c351..fe4b14828699c7ccd9dd23397704062bd0e640b2 100644 (file)
@@ -95,6 +95,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
@@ -109,6 +111,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 05641001bcd749a3d576280e0212da4abba94c53..76f3c5268ee5fcc45f0fbeba8ce6943cfc391f21 100644 (file)
@@ -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 */