nixpkgs/pkgs/by-name/dx/dxvk_1/gcc14-compat.patch
Randy Eckenrode 06bffcd1a3
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.
2024-12-01 19:24:58 -05:00

15 lines
458 B
Diff

diff --git a/src/d3d10/d3d10_interfaces.h b/src/d3d10/d3d10_interfaces.h
index aa028ab575..99f1dc4567 100644
--- a/src/d3d10/d3d10_interfaces.h
+++ b/src/d3d10/d3d10_interfaces.h
@@ -1,9 +1,3 @@
#pragma once
#include "d3d10_include.h"
-
-#ifdef _MSC_VER
-struct __declspec(uuid("0803425a-57f5-4dd6-9465-a87570834a08")) ID3D10StateBlock;
-#else
-__CRT_UUID_DECL(ID3D10StateBlock, 0x0803425a,0x57f5,0x4dd6,0x94,0x65,0xa8,0x75,0x70,0x83,0x4a,0x08);
-#endif