aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/dtoa.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-29 10:56:49 +0200
committerGitHub <noreply@github.com>2023-09-29 10:56:49 +0200
commit8b626a47bafdb2d1ebb1321e50ffa5d6c721bf3a (patch)
tree325fbb4507cac60718250226d1b7f7e1db559ef3 /Python/dtoa.c
parentbfd94ab9e9f4055ecedaa500b46b0270da9ffe12 (diff)
downloadcpython-8b626a47bafdb2d1ebb1321e50ffa5d6c721bf3a.tar.gz
cpython-8b626a47bafdb2d1ebb1321e50ffa5d6c721bf3a.zip
gh-110079: Remove extern "C" { ...} in C code (#110080)
Diffstat (limited to 'Python/dtoa.c')
-rw-r--r--Python/dtoa.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/Python/dtoa.c b/Python/dtoa.c
index c5e343b82f7..5dfc0e179cb 100644
--- a/Python/dtoa.c
+++ b/Python/dtoa.c
@@ -172,10 +172,6 @@ typedef uint64_t ULLong;
#define Bug(x) {fprintf(stderr, "%s\n", x); exit(1);}
#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef union { double d; ULong L[2]; } U;
#ifdef IEEE_8087
@@ -2813,8 +2809,5 @@ _Py_dg_dtoa(double dd, int mode, int ndigits,
_Py_dg_freedtoa(s0);
return NULL;
}
-#ifdef __cplusplus
-}
-#endif
#endif // _PY_SHORT_FLOAT_REPR == 1