From 9e9c8df3f0e0473c6be9ae1a01a8d844e96ba235 Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Wed, 18 May 2022 09:12:39 -0700 Subject: [PATCH] d3d12: Include windows.h on Windows before dxgicommon.h The dxgicommon.h header uses UINT types without including windows.h itself. Fixes: 6dbe05ff ("d3d12: Add util video functions to d3d12_format") Reviewed-by: Sil Vilerino Part-of: --- src/gallium/drivers/d3d12/d3d12_format.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/d3d12/d3d12_format.h b/src/gallium/drivers/d3d12/d3d12_format.h index ef5a1721d9e..3f5054b4776 100644 --- a/src/gallium/drivers/d3d12/d3d12_format.h +++ b/src/gallium/drivers/d3d12/d3d12_format.h @@ -25,7 +25,9 @@ #define D3D12_FORMATS_H #include -#ifndef _WIN32 +#ifdef _WIN32 +#include +#else #include #endif #include