summarylogtreecommitdiffstats
path: root/fix_hwnd_changes_meaning.patch
diff options
context:
space:
mode:
authorStelios Tsampas2023-05-05 16:25:12 +0300
committerStelios Tsampas2023-05-06 02:43:37 +0300
commit6992d6f8a591bf3d143d5a7997753674bbc7e16a (patch)
treea3e0943fb8e9b6c635d446fe968a8fc02e6c2ff8 /fix_hwnd_changes_meaning.patch
parentc08baa83f075dd68fa0ff3e1f57253f7fb71652f (diff)
downloadaur-6992d6f8a591bf3d143d5a7997753674bbc7e16a.tar.gz
[proton] Fix steam_helper compilation on GCC 13
Diffstat (limited to 'fix_hwnd_changes_meaning.patch')
-rw-r--r--fix_hwnd_changes_meaning.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/fix_hwnd_changes_meaning.patch b/fix_hwnd_changes_meaning.patch
new file mode 100644
index 000000000000..87b19a458885
--- /dev/null
+++ b/fix_hwnd_changes_meaning.patch
@@ -0,0 +1,25 @@
+diff --git a/steam_helper/steam.cpp b/steam_helper/steam.cpp
+index 190a8c05..afe7916b 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 <shlobj.h>
+ #include <string.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);