Skip to content

Commit 7d45fb6

Browse files
committed
[d3d8 Rebase] MSVC build fixes
1 parent 73e3f14 commit 7d45fb6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/d3d8/meson.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ d3d8_dll = shared_library('d3d8'+dll_ext, d3d8_src, d3d8_res,
1111
dependencies : [ d3d9_dep, util_dep ],
1212
include_directories : dxvk_include_path,
1313
install : true,
14-
objects : not dxvk_msvc ? 'd3d8'+def_spec_ext : [],
14+
objects : not dxvk_is_msvc ? 'd3d8'+def_spec_ext : [],
1515
vs_module_defs : 'd3d8'+def_spec_ext,
1616
override_options : ['cpp_std='+dxvk_cpp_std])
1717

src/vulkan/vulkan_util.h

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
#include "vulkan_loader.h"
66

7+
#if defined(_MSC_VER)
8+
// Unary minus on unsigned type
9+
#pragma warning( disable : 4146 )
10+
#endif
11+
712
namespace dxvk::vk {
813

914
inline VkImageSubresourceRange makeSubresourceRange(

0 commit comments

Comments
 (0)