mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
GH-95896: posixmodule.c: fix osdefs.h inclusion to not depend on compiler (#95897)
Co-authored-by: Steve Dower <steve.dower@python.org>
This commit is contained in:
parent
a86d854522
commit
ec2b76aa8b
1 changed files with 3 additions and 11 deletions
|
@ -16,6 +16,9 @@
|
||||||
#ifdef MS_WINDOWS
|
#ifdef MS_WINDOWS
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
# include <pathcch.h>
|
# include <pathcch.h>
|
||||||
|
# include <lmcons.h> // UNLEN
|
||||||
|
# include "osdefs.h" // SEP
|
||||||
|
# define HAVE_SYMLINK
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __VXWORKS__
|
#ifdef __VXWORKS__
|
||||||
|
@ -426,18 +429,7 @@ extern char *ctermid_r(char *);
|
||||||
# ifdef HAVE_PROCESS_H
|
# ifdef HAVE_PROCESS_H
|
||||||
# include <process.h>
|
# include <process.h>
|
||||||
# endif
|
# endif
|
||||||
# ifndef IO_REPARSE_TAG_SYMLINK
|
|
||||||
# define IO_REPARSE_TAG_SYMLINK (0xA000000CL)
|
|
||||||
# endif
|
|
||||||
# ifndef IO_REPARSE_TAG_MOUNT_POINT
|
|
||||||
# define IO_REPARSE_TAG_MOUNT_POINT (0xA0000003L)
|
|
||||||
# endif
|
|
||||||
# include "osdefs.h" // SEP
|
|
||||||
# include <malloc.h>
|
# include <malloc.h>
|
||||||
# include <windows.h>
|
|
||||||
# include <shellapi.h> // ShellExecute()
|
|
||||||
# include <lmcons.h> // UNLEN
|
|
||||||
# define HAVE_SYMLINK
|
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
#ifndef MAXPATHLEN
|
#ifndef MAXPATHLEN
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue