summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_pymath.h
diff options
context:
space:
mode:
authorOleg Iarygin <oleg@arhadthedev.net>2022-02-25 23:16:59 (GMT)
committerGitHub <noreply@github.com>2022-02-25 23:16:59 (GMT)
commit4060111f9dc44682f9d7bdafb4e7dacb96706ad3 (patch)
tree4a37519d4101130f91722b69eb7c5fedb740ba8e /Include/internal/pycore_pymath.h
parenteb002dbe0da9622245a355db5f0cd5aa2fc70b40 (diff)
downloadcpython-4060111f9dc44682f9d7bdafb4e7dacb96706ad3.zip
cpython-4060111f9dc44682f9d7bdafb4e7dacb96706ad3.tar.gz
cpython-4060111f9dc44682f9d7bdafb4e7dacb96706ad3.tar.bz2
bpo-46816: Remove declarations for non-__STDC__ compilers (GH-31466)
After Python switched to C11, there is a guarantee that every compiler conforms to ISO C so checks of __STDC__ have no sense.
Diffstat (limited to 'Include/internal/pycore_pymath.h')
-rw-r--r--Include/internal/pycore_pymath.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/Include/internal/pycore_pymath.h b/Include/internal/pycore_pymath.h
index 1f54b3d..5c6aee2 100644
--- a/Include/internal/pycore_pymath.h
+++ b/Include/internal/pycore_pymath.h
@@ -8,15 +8,6 @@ extern "C" {
# error "this header requires Py_BUILD_CORE define"
#endif
-// Extra declarations
-#if !defined(_MSC_VER) && !defined(__STDC__)
-extern double fmod (double, double);
-extern double frexp (double, int *);
-extern double ldexp (double, int);
-extern double modf (double, double *);
-extern double pow(double, double);
-#endif // !defined(_MSC_VER) && !defined(__STDC__)
-
/* _Py_ADJUST_ERANGE1(x)
* _Py_ADJUST_ERANGE2(x, y)