]> granicus.if.org Git - python/commitdiff
add 'extern' to pygetopt.h symbols, so then don't end up in comdat (#4909)
authorBenjamin Peterson <benjamin@python.org>
Sun, 17 Dec 2017 18:34:00 +0000 (10:34 -0800)
committerGitHub <noreply@github.com>
Sun, 17 Dec 2017 18:34:00 +0000 (10:34 -0800)
bpo-32264

Include/internal/pygetopt.h

index df6f18354ee02f97978b6a4482f391dca20aedf1..8ef2ada72fee2477ddd46e5a3d29917dae270125 100644 (file)
@@ -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 */