Skip to content

Commit 8c3c833

Browse files
getchooevan-goode
authored andcommitted
fix(FileSystem): dont re-define structs for newer mingw versions
Signed-off-by: seth <[email protected]>
1 parent fc0ede4 commit 8c3c833

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

launcher/FileSystem.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ namespace fs = ghc::filesystem;
123123

124124
#if defined(__MINGW32__)
125125

126+
// Avoid re-defining structs retroactively added to MinGW
127+
// https://github.com/mingw-w64/mingw-w64/issues/90#issuecomment-2829284729
128+
#if __MINGW64_VERSION_MAJOR < 13
129+
126130
struct _DUPLICATE_EXTENTS_DATA {
127131
HANDLE FileHandle;
128132
LARGE_INTEGER SourceFileOffset;
@@ -132,6 +136,7 @@ struct _DUPLICATE_EXTENTS_DATA {
132136

133137
using DUPLICATE_EXTENTS_DATA = _DUPLICATE_EXTENTS_DATA;
134138
using PDUPLICATE_EXTENTS_DATA = _DUPLICATE_EXTENTS_DATA*;
139+
#endif
135140

136141
struct _FSCTL_GET_INTEGRITY_INFORMATION_BUFFER {
137142
WORD ChecksumAlgorithm; // Checksum algorithm. e.g. CHECKSUM_TYPE_UNCHANGED, CHECKSUM_TYPE_NONE, CHECKSUM_TYPE_CRC32

0 commit comments

Comments
 (0)