mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:33:00 +00:00
[SHELLBTRFS] Fix GCC build
CORE-15048
This commit is contained in:
parent
0f47f27829
commit
71ac5e6c65
5 changed files with 48 additions and 0 deletions
|
@ -547,6 +547,10 @@ void BtrfsSend::Open(HWND hwnd, LPWSTR path) {
|
|||
ShowError(hwnd, GetLastError());
|
||||
}
|
||||
|
||||
#ifdef __REACTOS__
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void CALLBACK SendSubvolGUIW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
|
||||
HANDLE token;
|
||||
TOKEN_PRIVILEGES tp;
|
||||
|
@ -585,6 +589,10 @@ void CALLBACK SendSubvolGUIW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int
|
|||
CloseHandle(token);
|
||||
}
|
||||
|
||||
#ifdef __REACTOS__
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
static void send_subvol(std::wstring subvol, std::wstring file, std::wstring parent, std::vector<std::wstring> clones) {
|
||||
char* buf;
|
||||
HANDLE dirh, stream;
|
||||
|
@ -697,6 +705,10 @@ end3:
|
|||
free(buf);
|
||||
}
|
||||
|
||||
#ifdef __REACTOS__
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void CALLBACK SendSubvolW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
|
||||
LPWSTR* args;
|
||||
int num_args;
|
||||
|
@ -755,3 +767,7 @@ void CALLBACK SendSubvolW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nC
|
|||
end:
|
||||
LocalFree(args);
|
||||
}
|
||||
|
||||
#ifdef __REACTOS__
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue