From 4060111f9dc44682f9d7bdafb4e7dacb96706ad3 Mon Sep 17 00:00:00 2001 From: Oleg Iarygin Date: Sat, 26 Feb 2022 02:16:59 +0300 Subject: 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. --- Python/errors.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'Python/errors.c') diff --git a/Python/errors.c b/Python/errors.c index 10a06a5ae3..e170c9dff2 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 #ifdef MS_WINDOWS # include -- cgit v1.2.1