summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
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 /Python/errors.c
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 'Python/errors.c')
-rw-r--r--Python/errors.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 10a06a5..e170c9d 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -10,12 +10,6 @@
#include "pycore_sysmodule.h" // _PySys_Audit()
#include "pycore_traceback.h" // _PyTraceBack_FromFrame()
-#ifndef __STDC__
-#ifndef MS_WINDOWS
-extern char *strerror(int);
-#endif
-#endif
-
#include <ctype.h>
#ifdef MS_WINDOWS
# include <windows.h>