mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-40268: Remove unused osdefs.h includes (GH-19532)
When the include is needed, add required symbol in a comment.
This commit is contained in:
parent
d9ea5cae1d
commit
361dcdcefc
13 changed files with 18 additions and 20 deletions
|
|
@ -4,7 +4,6 @@
|
|||
#include "pycore_traceback.h"
|
||||
#include "hashtable.h"
|
||||
#include "frameobject.h"
|
||||
#include "osdefs.h"
|
||||
|
||||
#include "clinic/_tracemalloc.c.h"
|
||||
/*[clinic input]
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include "pycore_fileutils.h"
|
||||
#include "pycore_initconfig.h"
|
||||
#include "pycore_pathconfig.h"
|
||||
#include "osdefs.h"
|
||||
#include "osdefs.h" // DELIM
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <string.h>
|
||||
|
|
|
|||
|
|
@ -312,11 +312,11 @@ extern char *ctermid_r(char *);
|
|||
#ifndef IO_REPARSE_TAG_MOUNT_POINT
|
||||
#define IO_REPARSE_TAG_MOUNT_POINT (0xA0000003L)
|
||||
#endif
|
||||
#include "osdefs.h"
|
||||
#include "osdefs.h" // SEP
|
||||
#include <malloc.h>
|
||||
#include <windows.h>
|
||||
#include <shellapi.h> /* for ShellExecute() */
|
||||
#include <lmcons.h> /* for UNLEN */
|
||||
#include <shellapi.h> // ShellExecute()
|
||||
#include <lmcons.h> // UNLEN
|
||||
#define HAVE_SYMLINK
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ Revision history:
|
|||
/* syslog module */
|
||||
|
||||
#include "Python.h"
|
||||
#include "osdefs.h"
|
||||
#include "osdefs.h" // SEP
|
||||
|
||||
#include <syslog.h>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue