bpo-40677: Define IO_REPARSE_TAG_APPEXECLINK explicitly (GH-20206)

This allows building with older versions of the Windows SDK where the value is not defined.
This commit is contained in:
Minmin Gong 2020-05-19 05:22:16 -07:00 committed by GitHub
parent 8c862e5124
commit 711f9e180a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
Manually define IO_REPARSE_TAG_APPEXECLINK in case some old Windows SDK doesn't have it.

View File

@ -40,6 +40,10 @@ typedef unsigned short mode_t;
# define FILE_ATTRIBUTE_NO_SCRUB_DATA 0x20000 # define FILE_ATTRIBUTE_NO_SCRUB_DATA 0x20000
#endif #endif
#ifndef IO_REPARSE_TAG_APPEXECLINK
# define IO_REPARSE_TAG_APPEXECLINK 0x8000001BL
#endif
#endif /* MS_WINDOWS */ #endif /* MS_WINDOWS */
/* From Python's stat.py */ /* From Python's stat.py */