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.
  • Loading branch information
gongminmin authored May 19, 2020
1 parent 8c862e5 commit 711f9e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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 711f9e1

Please sign in to comment.