mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-19 15:57:18 +02:00
fix(FileSystem): dont re-define structs for newer mingw versions
Signed-off-by: seth <getchoo@tuta.io>
This commit is contained in:
parent
198fbd19cf
commit
cf7061b9a8
@ -107,6 +107,10 @@ namespace fs = std::filesystem;
|
||||
|
||||
#if defined(__MINGW32__)
|
||||
|
||||
// Avoid re-defining structs retroactively added to MinGW
|
||||
// https://github.com/mingw-w64/mingw-w64/issues/90#issuecomment-2829284729
|
||||
#if __MINGW64_VERSION_MAJOR < 13
|
||||
|
||||
struct _DUPLICATE_EXTENTS_DATA {
|
||||
HANDLE FileHandle;
|
||||
LARGE_INTEGER SourceFileOffset;
|
||||
@ -116,6 +120,7 @@ struct _DUPLICATE_EXTENTS_DATA {
|
||||
|
||||
using DUPLICATE_EXTENTS_DATA = _DUPLICATE_EXTENTS_DATA;
|
||||
using PDUPLICATE_EXTENTS_DATA = _DUPLICATE_EXTENTS_DATA*;
|
||||
#endif
|
||||
|
||||
struct _FSCTL_GET_INTEGRITY_INFORMATION_BUFFER {
|
||||
WORD ChecksumAlgorithm; // Checksum algorithm. e.g. CHECKSUM_TYPE_UNCHANGED, CHECKSUM_TYPE_NONE, CHECKSUM_TYPE_CRC32
|
||||
|
Loading…
x
Reference in New Issue
Block a user