Skip to content

Commit d826778

Browse files
committed
Fix build errors in mingw
Cryptic linking errors would appear when trying to compile with mingw The errors mentioned __mingw_uuidof<ID3D12Heap>, __mingw_uuidof<ID3D12Device8> and __mingw_uuidof<ID3D12Device10> as undefined references.
1 parent aca35f1 commit d826778

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/D3D12MemAlloc.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
#include <shared_mutex>
3434
#endif
3535

36+
#if !defined(_MSC_VER)
37+
#include <guiddef.h>
38+
// guiddef.h must be included first.
39+
#include <dxguids.h>
40+
#endif
41+
3642
////////////////////////////////////////////////////////////////////////////////
3743
////////////////////////////////////////////////////////////////////////////////
3844
//

0 commit comments

Comments
 (0)