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:
Victor Stinner 2020-04-15 03:24:57 +02:00 • committed by GitHub
parent d9ea5cae1d
commit 361dcdcefc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 18 additions and 20 deletions

View file

@ -4,7 +4,6 @@
#include "pycore_traceback.h"
#include "hashtable.h"
#include "frameobject.h"
#include "osdefs.h"
#include "clinic/_tracemalloc.c.h"
/*[clinic input]

View file

@ -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>

View file

@ -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 */

View file

@ -50,7 +50,7 @@ Revision history:
/* syslog module */
#include "Python.h"
#include "osdefs.h"
#include "osdefs.h" // SEP
#include <syslog.h>