mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:45:50 +00:00
[BTRFS] Fix dirctl.c build
This commit is contained in:
parent
255ef2c332
commit
fe0a6c9be4
1 changed files with 7 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
#include "btrfs_drv.h"
|
#include "btrfs_drv.h"
|
||||||
|
|
||||||
|
#ifndef __REACTOS__
|
||||||
// not currently in mingw
|
// not currently in mingw
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
#define FileIdExtdDirectoryInformation (enum _FILE_INFORMATION_CLASS)60
|
#define FileIdExtdDirectoryInformation (enum _FILE_INFORMATION_CLASS)60
|
||||||
|
@ -58,6 +59,10 @@ typedef struct _FILE_ID_EXTD_BOTH_DIR_INFORMATION {
|
||||||
WCHAR FileName[1];
|
WCHAR FileName[1];
|
||||||
} FILE_ID_EXTD_BOTH_DIR_INFORMATION, *PFILE_ID_EXTD_BOTH_DIR_INFORMATION;
|
} 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
|
#endif
|
||||||
|
|
||||||
enum DirEntryType {
|
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 push
|
||||||
#pragma GCC diagnostic ignored "-Wswitch"
|
#pragma GCC diagnostic ignored "-Wswitch"
|
||||||
#endif
|
#endif
|
||||||
|
#if (NTDDI_VERSION >= NTDDI_VISTA)
|
||||||
case FileIdExtdDirectoryInformation:
|
case FileIdExtdDirectoryInformation:
|
||||||
{
|
{
|
||||||
FILE_ID_EXTD_DIR_INFORMATION* fiedi = buf;
|
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;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue