mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:03:02 +00:00
[SHELLBTRFS] Fix MSVC build.
This commit is contained in:
parent
65ff430c2b
commit
bc00ea2464
1 changed files with 28 additions and 0 deletions
|
@ -17,6 +17,13 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
/* C++ backwards-compatibility */
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
#if defined(_MSC_VER) && (_MSC_VER < 1900)
|
||||||
|
#define noexcept
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ISOLATION_AWARE_ENABLED 1
|
#define ISOLATION_AWARE_ENABLED 1
|
||||||
#define STRSAFE_NO_DEPRECATE
|
#define STRSAFE_NO_DEPRECATE
|
||||||
|
|
||||||
|
@ -195,6 +202,9 @@ typedef struct _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER {
|
||||||
class win_handle {
|
class win_handle {
|
||||||
public:
|
public:
|
||||||
win_handle() {
|
win_handle() {
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
h = INVALID_HANDLE_VALUE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
win_handle(HANDLE nh) {
|
win_handle(HANDLE nh) {
|
||||||
|
@ -224,12 +234,19 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
#ifndef __REACTOS__
|
||||||
HANDLE h = INVALID_HANDLE_VALUE;
|
HANDLE h = INVALID_HANDLE_VALUE;
|
||||||
|
#else
|
||||||
|
HANDLE h;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
class fff_handle {
|
class fff_handle {
|
||||||
public:
|
public:
|
||||||
fff_handle() {
|
fff_handle() {
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
h = INVALID_HANDLE_VALUE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
fff_handle(HANDLE nh) {
|
fff_handle(HANDLE nh) {
|
||||||
|
@ -259,12 +276,19 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
#ifndef __REACTOS__
|
||||||
HANDLE h = INVALID_HANDLE_VALUE;
|
HANDLE h = INVALID_HANDLE_VALUE;
|
||||||
|
#else
|
||||||
|
HANDLE h;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
class nt_handle {
|
class nt_handle {
|
||||||
public:
|
public:
|
||||||
nt_handle() {
|
nt_handle() {
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
h = INVALID_HANDLE_VALUE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
nt_handle(HANDLE nh) {
|
nt_handle(HANDLE nh) {
|
||||||
|
@ -294,7 +318,11 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
#ifndef __REACTOS__
|
||||||
HANDLE h = INVALID_HANDLE_VALUE;
|
HANDLE h = INVALID_HANDLE_VALUE;
|
||||||
|
#else
|
||||||
|
HANDLE h;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
class string_error : public exception {
|
class string_error : public exception {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue