File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,10 @@ namespace fs = ghc::filesystem;
123
123
124
124
#if defined(__MINGW32__)
125
125
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
+
126
130
struct _DUPLICATE_EXTENTS_DATA {
127
131
HANDLE FileHandle;
128
132
LARGE_INTEGER SourceFileOffset;
@@ -132,6 +136,7 @@ struct _DUPLICATE_EXTENTS_DATA {
132
136
133
137
using DUPLICATE_EXTENTS_DATA = _DUPLICATE_EXTENTS_DATA;
134
138
using PDUPLICATE_EXTENTS_DATA = _DUPLICATE_EXTENTS_DATA*;
139
+ #endif
135
140
136
141
struct _FSCTL_GET_INTEGRITY_INFORMATION_BUFFER {
137
142
WORD ChecksumAlgorithm; // Checksum algorithm. e.g. CHECKSUM_TYPE_UNCHANGED, CHECKSUM_TYPE_NONE, CHECKSUM_TYPE_CRC32
You can’t perform that action at this time.
0 commit comments