https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fe0a6c9be481780d1d254…
commit fe0a6c9be481780d1d25451f47e023f1bcf4b4fa
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Mon Sep 2 21:48:54 2019 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Mon Sep 2 21:48:54 2019 +0200
[BTRFS] Fix dirctl.c build
---
drivers/filesystems/btrfs/dirctrl.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/filesystems/btrfs/dirctrl.c b/drivers/filesystems/btrfs/dirctrl.c
index 2e324e4f6d2..41a68268add 100644
--- a/drivers/filesystems/btrfs/dirctrl.c
+++ b/drivers/filesystems/btrfs/dirctrl.c
@@ -17,6 +17,7 @@
#include "btrfs_drv.h"
+#ifndef __REACTOS__
// not currently in mingw
#ifndef _MSC_VER
#define FileIdExtdDirectoryInformation (enum _FILE_INFORMATION_CLASS)60
@@ -58,6 +59,10 @@ typedef struct _FILE_ID_EXTD_BOTH_DIR_INFORMATION {
WCHAR FileName[1];
} FILE_ID_EXTD_BOTH_DIR_INFORMATION, *PFILE_ID_EXTD_BOTH_DIR_INFORMATION;
+#endif
+#else
+#define FileIdExtdDirectoryInformation (enum _FILE_INFORMATION_CLASS)60
+#define FileIdExtdBothDirectoryInformation (enum _FILE_INFORMATION_CLASS)63
#endif
enum DirEntryType {
@@ -516,6 +521,7 @@ static NTSTATUS query_dir_item(fcb* fcb, ccb* ccb, void* buf, LONG*
len, PIRP Ir
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wswitch"
#endif
+#if (NTDDI_VERSION >= NTDDI_VISTA)
case FileIdExtdDirectoryInformation:
{
FILE_ID_EXTD_DIR_INFORMATION* fiedi = buf;
@@ -603,6 +609,7 @@ static NTSTATUS query_dir_item(fcb* fcb, ccb* ccb, void* buf, LONG*
len, PIRP Ir
return STATUS_SUCCESS;
}
+#endif
#ifndef _MSC_VER
#pragma GCC diagnostic pop