dzn: Define COBJMACROS before any includes

Otherwise the IUnknown definition might get included before it.

Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Bill Kristiansen <billkris@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17340>
This commit is contained in:
Jesse Natalie 2022-07-01 09:28:52 -07:00 committed by Marge Bot
parent f47e42fdba
commit 1a01187e1b

View file

@ -24,6 +24,8 @@
#ifndef DZN_PRIVATE_H
#define DZN_PRIVATE_H
#define COBJMACROS
#include "vk_command_pool.h"
#include "vk_command_buffer.h"
#include "vk_cmd_queue.h"
@ -56,7 +58,6 @@
#include <vulkan/vk_icd.h>
#define D3D12_IGNORE_SDK_LAYERS
#define COBJMACROS
#include <unknwn.h>
#include <dxgi1_4.h>
#include <directx/d3d12.h>