Skip to content

Commit

Permalink
[d3d8] Format MinGW __CRT_UUID_DECL definition
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpyneDreams committed Jul 7, 2024
1 parent 054eb56 commit 9b44e13
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/d3d8/d3d8_include.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,9 @@ interface DECLSPEC_UUID("4B8AAAFA-140F-42BA-9131-597EAFAA2EAD") IDirect3DVolumeT
#ifdef __MINGW32__
#define __CRT_UUID_DECL(type,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
} \
extern "C++" { \
template<> struct __mingw_uuidof_s<d3d9::type> { \
static constexpr IID __uuid_inst = { \
l,w1,w2, {b1,b2,b3,b4,b5,b6,b7,b8} \
}; \
}; \
template<> constexpr const GUID &__mingw_uuidof<d3d9::type>() { \
return __mingw_uuidof_s<d3d9::type>::__uuid_inst; \
} \
template<> constexpr const GUID &__mingw_uuidof<d3d9::type*>() { \
return __mingw_uuidof_s<d3d9::type>::__uuid_inst; \
} \
} \
extern "C++" template<> struct __mingw_uuidof_s<d3d9::type> { static constexpr IID __uuid_inst = {l,w1,w2, {b1,b2,b3,b4,b5,b6,b7,b8}}; }; \
extern "C++" template<> constexpr const GUID &__mingw_uuidof<d3d9::type>() { return __mingw_uuidof_s<d3d9::type>::__uuid_inst; } \
extern "C++" template<> constexpr const GUID &__mingw_uuidof<d3d9::type*>() { return __mingw_uuidof_s<d3d9::type>::__uuid_inst; } \
namespace d3d9 {

#elif defined(__GNUC__)
Expand Down

0 comments on commit 9b44e13

Please sign in to comment.