]> granicus.if.org Git - python/commitdiff
bpo-29556: Remove unused #include <langinfo.h> (#98)
authorYen Chi Hsuan <yan12125@gmail.com>
Wed, 15 Feb 2017 23:34:30 +0000 (07:34 +0800)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 15 Feb 2017 23:34:30 +0000 (00:34 +0100)
bltinmodule.c: Added in b744ba1 and no longer necessary since d64e8a7
posixmodule.c: Added in d1cd4d4 and no longer necessary since efb00c0
pythonrun.c:   Added in 73d538b and no longer necessary since d600951
sysmodule.c:   Added in 5467d4c and no longer necessary since a2c17c5

Modules/posixmodule.c
Python/bltinmodule.c
Python/pythonrun.c
Python/sysmodule.c

index ffe4815d66d16a016b11c5923fcf05e7f0488af5..ae03d06fe10d072c76a1d43bd0a0a647a01d02cc 100644 (file)
@@ -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
index 763c2a2bb8e3b54211070cf1d55c2c8ab6db471b..63f19986760088a6a39df8d9839bb14659c50dc6 100644 (file)
 
 #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
 
index 5bddbad1c8f5866bc7bfd45c4385a3c1e639dab5..b7016d1b006c51b5e58e7021496b219b96621c45 100644 (file)
 #include "malloc.h" /* for alloca */
 #endif
 
-#ifdef HAVE_LANGINFO_H
-#include <langinfo.h>
-#endif
-
 #ifdef MS_WINDOWS
 #undef BYTE
 #include "windows.h"
index 81520ea84f09cd4bbe9d89079416a4efc8df6d5e..c317b4337a3257103505bdaec64440f360d28618 100644 (file)
@@ -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);