Skip to content

Commit 06bffcd

Browse files
committed
dxvk_1: fix build compatibility with GCC 14
Fixes `redefinition of 'struct __mingw_uuidof_s<ID3D10StateBlock>'` when building DXVK 1.10.3 with GCC 14.
1 parent 2c15aa5 commit 06bffcd

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/src/d3d10/d3d10_interfaces.h b/src/d3d10/d3d10_interfaces.h
2+
index aa028ab575..99f1dc4567 100644
3+
--- a/src/d3d10/d3d10_interfaces.h
4+
+++ b/src/d3d10/d3d10_interfaces.h
5+
@@ -1,9 +1,3 @@
6+
#pragma once
7+
8+
#include "d3d10_include.h"
9+
-
10+
-#ifdef _MSC_VER
11+
-struct __declspec(uuid("0803425a-57f5-4dd6-9465-a87570834a08")) ID3D10StateBlock;
12+
-#else
13+
-__CRT_UUID_DECL(ID3D10StateBlock, 0x0803425a,0x57f5,0x4dd6,0x94,0x65,0xa8,0x75,0x70,0x83,0x4a,0x08);
14+
-#endif

pkgs/by-name/dx/dxvk_1/package.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ stdenv.mkDerivation (finalAttrs: {
2929
url = "https://github.com/doitsujin/dxvk/commit/1a5afc77b1859e6c7e31b55e11ece899e3b5295a.patch";
3030
hash = "sha256-tTAsQOMAazgH/6laLNTuG2lki257VUR9EBivnD4vCuY=";
3131
})
32+
# Fixes errors building with GCC 14.
33+
./gcc14-compat.patch
3234
]
3335
++ lib.optionals enableMoltenVKCompat [
3436
# Patch DXVK to work with MoltenVK even though it doesn’t support some required features.

0 commit comments

Comments
 (0)