diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index ffe4815d66d16a..ae03d06fe10d07 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -87,10 +87,6 @@ corresponding Unix manual entries for more information on calls."); #include <sys/loadavg.h> #endif -#ifdef HAVE_LANGINFO_H -#include <langinfo.h> -#endif - #ifdef HAVE_SYS_SENDFILE_H #include <sys/sendfile.h> #endif diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 763c2a2bb8e3b5..63f19986760088 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -11,10 +11,6 @@ #include <ctype.h> -#ifdef HAVE_LANGINFO_H -#include <langinfo.h> /* CODESET */ -#endif - /* The default encoding used by the platform file system APIs Can remain NULL for all platforms that don't have such a concept diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 5bddbad1c8f586..b7016d1b006c51 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -25,10 +25,6 @@ #include "malloc.h" /* for alloca */ #endif -#ifdef HAVE_LANGINFO_H -#include <langinfo.h> -#endif - #ifdef MS_WINDOWS #undef BYTE #include "windows.h" diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 81520ea84f09cd..c317b4337a3257 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -33,10 +33,6 @@ extern void *PyWin_DLLhModule; extern const char *PyWin_DLLVersionString; #endif -#ifdef HAVE_LANGINFO_H -#include <langinfo.h> -#endif - _Py_IDENTIFIER(_); _Py_IDENTIFIER(__sizeof__); _Py_IDENTIFIER(buffer);