tests: Distinguish between cross and non-cross Win32 builds.

Now the tests compile correctly on non-cross Win32 builds.
This commit is contained in:
Giovanni Mascellani
2023-01-18 14:31:07 +01:00
committed by Alexandre Julliard
parent 9c817e5e6d
commit 44d9e2d728
Notes: Alexandre Julliard 2023-01-24 22:27:46 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/57
4 changed files with 21 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ typedef int HRESULT;
#include <stddef.h>
#include <time.h>
#ifdef _WIN32
#ifdef VKD3D_CROSSTEST
# include "vkd3d_dxgi1_4.h"
#else
# define VKD3D_UTILS_API_VERSION VKD3D_API_VERSION_1_2
@@ -261,7 +261,7 @@ static void wait_queue_idle_(unsigned int line, ID3D12Device *device, ID3D12Comm
static bool use_warp_device;
static unsigned int use_adapter_idx;
#ifdef _WIN32
#ifdef VKD3D_CROSSTEST
static IUnknown *create_warp_adapter(IDXGIFactory4 *factory)
{
IUnknown *adapter;