dzn: Fixes compiling error by include `<unknwn.h>`

In mingw's `<unknwn.h>`, it's defeind __REQUIRED_RPCNDR_H_VERSION__ to 475,
so that gcc/mingw won't raise compiling error that because directx/d3d12.h
define __REQUIRED_RPCNDR_H_VERSION__ to 500, but the maximal supported __REQUIRED_RPCNDR_H_VERSION__ in mingw
are 475.

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16767>
This commit is contained in:
Yonggang Luo 2022-04-30 05:30:22 +08:00 committed by Marge Bot
parent 0445bfdc1b
commit 1720672e33
2 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@
#define D3D12_IGNORE_SDK_LAYERS
#define COBJMACROS
#include <unknwn.h>
#include <directx/d3d12.h>
#include "nir.h"

View File

@ -55,6 +55,7 @@
#define D3D12_IGNORE_SDK_LAYERS
#define COBJMACROS
#include <unknwn.h>
#include <dxgi1_4.h>
#include <directx/d3d12.h>