diff options
author | Benjamin Peterson <benjamin@python.org> | 2017-12-17 18:34:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-17 18:34:00 (GMT) |
commit | 4c72bc4a38eced10a55ba7071e084b26a2b5ed4b (patch) | |
tree | 1eb830711a14c9db931073af562139f9bc295ac9 /Include/internal | |
parent | 5382c05021026fe623def829d121f5f6af4909fb (diff) | |
download | cpython-4c72bc4a38eced10a55ba7071e084b26a2b5ed4b.zip cpython-4c72bc4a38eced10a55ba7071e084b26a2b5ed4b.tar.gz cpython-4c72bc4a38eced10a55ba7071e084b26a2b5ed4b.tar.bz2 |
add 'extern' to pygetopt.h symbols, so then don't end up in comdat (#4909)
bpo-32264
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pygetopt.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Include/internal/pygetopt.h b/Include/internal/pygetopt.h index df6f183..8ef2ada 100644 --- a/Include/internal/pygetopt.h +++ b/Include/internal/pygetopt.h @@ -1,11 +1,11 @@ #ifndef Py_INTERNAL_PYGETOPT_H #define Py_INTERNAL_PYGETOPT_H -int _PyOS_opterr; -int _PyOS_optind; -wchar_t *_PyOS_optarg; +extern int _PyOS_opterr; +extern int _PyOS_optind; +extern wchar_t *_PyOS_optarg; -void _PyOS_ResetGetOpt(void); +extern void _PyOS_ResetGetOpt(void); typedef struct { const wchar_t *name; @@ -13,7 +13,7 @@ typedef struct { int val; } _PyOS_LongOption; -int _PyOS_GetOpt(int argc, wchar_t **argv, wchar_t *optstring, - const _PyOS_LongOption *longopts, int *longindex); +extern int _PyOS_GetOpt(int argc, wchar_t **argv, wchar_t *optstring, + const _PyOS_LongOption *longopts, int *longindex); #endif /* !Py_INTERNAL_PYGETOPT_H */ |