From d82677892744250f34fd70cbb26df82112047127 Mon Sep 17 00:00:00 2001 From: "Matias N. Goldberg" Date: Mon, 7 Apr 2025 15:46:15 -0300 Subject: [PATCH] Fix build errors in mingw Cryptic linking errors would appear when trying to compile with mingw The errors mentioned __mingw_uuidof, __mingw_uuidof and __mingw_uuidof as undefined references. --- src/D3D12MemAlloc.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/D3D12MemAlloc.cpp b/src/D3D12MemAlloc.cpp index f83ee32..52e76c3 100644 --- a/src/D3D12MemAlloc.cpp +++ b/src/D3D12MemAlloc.cpp @@ -33,6 +33,12 @@ #include #endif +#if !defined(_MSC_VER) +#include +// guiddef.h must be included first. +#include +#endif + //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// //