mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
bpo-45893: Add missing extern C to initconfig.h (GH-29761)
Co-authored-by: Steve Dower <steve.dower@python.org>
(cherry picked from commit f4afc53bf6)
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
8cabcde8d6
commit
cd85d91bc6
2 changed files with 10 additions and 0 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -115,6 +115,8 @@ jobs:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
needs: check_source
|
needs: check_source
|
||||||
if: needs.check_source.outputs.run_tests == 'true'
|
if: needs.check_source.outputs.run_tests == 'true'
|
||||||
|
env:
|
||||||
|
IncludeUwp: 'true'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Build CPython
|
- name: Build CPython
|
||||||
|
|
@ -129,6 +131,8 @@ jobs:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
needs: check_source
|
needs: check_source
|
||||||
if: needs.check_source.outputs.run_tests == 'true'
|
if: needs.check_source.outputs.run_tests == 'true'
|
||||||
|
env:
|
||||||
|
IncludeUwp: 'true'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Register MSVC problem matcher
|
- name: Register MSVC problem matcher
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
#ifndef Py_PYCORECONFIG_H
|
#ifndef Py_PYCORECONFIG_H
|
||||||
#define Py_PYCORECONFIG_H
|
#define Py_PYCORECONFIG_H
|
||||||
#ifndef Py_LIMITED_API
|
#ifndef Py_LIMITED_API
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/* --- PyStatus ----------------------------------------------- */
|
/* --- PyStatus ----------------------------------------------- */
|
||||||
|
|
||||||
|
|
@ -239,5 +242,8 @@ PyAPI_FUNC(PyStatus) PyConfig_SetWideStringList(PyConfig *config,
|
||||||
See also PyConfig.orig_argv. */
|
See also PyConfig.orig_argv. */
|
||||||
PyAPI_FUNC(void) Py_GetArgcArgv(int *argc, wchar_t ***argv);
|
PyAPI_FUNC(void) Py_GetArgcArgv(int *argc, wchar_t ***argv);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#endif /* !Py_LIMITED_API */
|
#endif /* !Py_LIMITED_API */
|
||||||
#endif /* !Py_PYCORECONFIG_H */
|
#endif /* !Py_PYCORECONFIG_H */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue