mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
add 'extern' to pygetopt.h symbols, so then don't end up in comdat (#4909)
bpo-32264
This commit is contained in:
parent
5382c05021
commit
4c72bc4a38
1 changed files with 6 additions and 6 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue