Skip to content

Commit

Permalink
bpo-40677: Define IO_REPARSE_TAG_APPEXECLINK explicitly (GH-20206)
Browse files Browse the repository at this point in the history
This allows building with older versions of the Windows SDK where the value is not defined.
(cherry picked from commit 711f9e1)

Co-authored-by: Minmin Gong <gongminmin@msn.com>
  • Loading branch information
miss-islington and gongminmin committed May 19, 2020
1 parent b5279c1 commit 560d643
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
@@ -0,0 +1 @@
Manually define IO_REPARSE_TAG_APPEXECLINK in case some old Windows SDK doesn't have it.
4 changes: 4 additions & 0 deletions Modules/_stat.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 560d643

Please sign in to comment.