Skip to content

Commit 4c72bc4

Browse files
authored
add 'extern' to pygetopt.h symbols, so then don't end up in comdat (#4909)
bpo-32264
1 parent 5382c05 commit 4c72bc4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Include/internal/pygetopt.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#ifndef Py_INTERNAL_PYGETOPT_H
22
#define Py_INTERNAL_PYGETOPT_H
33

4-
int _PyOS_opterr;
5-
int _PyOS_optind;
6-
wchar_t *_PyOS_optarg;
4+
extern int _PyOS_opterr;
5+
extern int _PyOS_optind;
6+
extern wchar_t *_PyOS_optarg;
77

8-
void _PyOS_ResetGetOpt(void);
8+
extern void _PyOS_ResetGetOpt(void);
99

1010
typedef struct {
1111
const wchar_t *name;
1212
int has_arg;
1313
int val;
1414
} _PyOS_LongOption;
1515

16-
int _PyOS_GetOpt(int argc, wchar_t **argv, wchar_t *optstring,
17-
const _PyOS_LongOption *longopts, int *longindex);
16+
extern int _PyOS_GetOpt(int argc, wchar_t **argv, wchar_t *optstring,
17+
const _PyOS_LongOption *longopts, int *longindex);
1818

1919
#endif /* !Py_INTERNAL_PYGETOPT_H */

0 commit comments

Comments
 (0)