summarylogtreecommitdiffstats
path: root/0005-AUR-Fix-hwnd-redefinition.patch
blob: 7a8f8d14e4cd0a49ab400c139a206f91fe59d562 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From ba03d04cedd9b0cc74fad1fd1392b52f89ad831c Mon Sep 17 00:00:00 2001
From: Stelios Tsampas <loathingkernel@gmail.com>
Date: Thu, 28 Sep 2023 14:16:04 +0300
Subject: [PATCH 5/5] AUR: Fix hwnd redefinition

---
 steam_helper/steam.cpp                       | 2 ++
 vrclient_x64/vrclient_x64/json_converter.cpp | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/steam_helper/steam.cpp b/steam_helper/steam.cpp
index 6a23b9ac..5437560c 100644
--- a/steam_helper/steam.cpp
+++ b/steam_helper/steam.cpp
@@ -34,7 +34,9 @@
 
 #include "ntstatus.h"
 #define WIN32_NO_STATUS
+extern "C" {
 #include <windows.h>
+}
 #include <winternl.h>
 #include <shlwapi.h>
 #include <shlobj.h>
diff --git a/vrclient_x64/vrclient_x64/json_converter.cpp b/vrclient_x64/vrclient_x64/json_converter.cpp
index 83fd2ec0..64d209a2 100644
--- a/vrclient_x64/vrclient_x64/json_converter.cpp
+++ b/vrclient_x64/vrclient_x64/json_converter.cpp
@@ -1,4 +1,6 @@
+extern "C" {
 #include <windows.h>
+}
 #include <wine/debug.h>
 
 WINE_DEFAULT_DEBUG_CHANNEL(vrclient);
-- 
2.43.0