Browse Source

bpo-29556: Remove unused #include <langinfo.h> (#98)

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
pull/127/head
Yen Chi Hsuan 9 years ago
committed by Victor Stinner
parent
commit
72e81d00ee
  1. 4
      Modules/posixmodule.c
  2. 4
      Python/bltinmodule.c
  3. 4
      Python/pythonrun.c
  4. 4
      Python/sysmodule.c

4
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

4
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

4
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"

4
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);

Loading…
Cancel
Save