summaryrefslogtreecommitdiffstats
path: root/Python/getopt.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-29 08:56:49 (GMT)
committerGitHub <noreply@github.com>2023-09-29 08:56:49 (GMT)
commit8b626a47bafdb2d1ebb1321e50ffa5d6c721bf3a (patch)
tree325fbb4507cac60718250226d1b7f7e1db559ef3 /Python/getopt.c
parentbfd94ab9e9f4055ecedaa500b46b0270da9ffe12 (diff)
downloadcpython-8b626a47bafdb2d1ebb1321e50ffa5d6c721bf3a.zip
cpython-8b626a47bafdb2d1ebb1321e50ffa5d6c721bf3a.tar.gz
cpython-8b626a47bafdb2d1ebb1321e50ffa5d6c721bf3a.tar.bz2
gh-110079: Remove extern "C" { ...} in C code (#110080)
Diffstat (limited to 'Python/getopt.c')
-rw-r--r--Python/getopt.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/Python/getopt.c b/Python/getopt.c
index 4135bf1..f64c89f 100644
--- a/Python/getopt.c
+++ b/Python/getopt.c
@@ -29,10 +29,6 @@
#include <wchar.h>
#include "pycore_getopt.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
int _PyOS_opterr = 1; /* generate error messages */
Py_ssize_t _PyOS_optind = 1; /* index into argv array */
const wchar_t *_PyOS_optarg = NULL; /* optional argument */
@@ -172,8 +168,3 @@ int _PyOS_GetOpt(Py_ssize_t argc, wchar_t * const *argv, int *longindex)
return option;
}
-
-#ifdef __cplusplus
-}
-#endif
-