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
#endif
#ifndef IO_REPARSE_TAG_APPEXECLINK
# define IO_REPARSE_TAG_APPEXECLINK 0x8000001BL
#endif
#endif /* MS_WINDOWS */
/* From Python's stat.py */