plugins/systemvolume: Fix linker error with mingw toolchain

This commit fixes the following linker error with mingw ld.

ld.exe: systemvolumeplugin-win.cpp:373:(.text+0x11ae): undefined
reference to `_GUID const& __mingw_uuidof<IPolicyConfigVista>()'
ld.exe: systemvolumeplugin-win.cpp:373:(.text+0x11b6): undefined
reference to `_GUID const& __mingw_uuidof<CPolicyConfigVistaClient>()'
This commit is contained in:
Biswapriyo Nath 2024-10-13 15:38:59 +00:00
parent 3242a5bebc
commit b40f2a785f

View file

@ -103,4 +103,9 @@ public:
INT); // not available on Windows 7, use method from IPolicyConfig INT); // not available on Windows 7, use method from IPolicyConfig
}; };
#if defined(__MINGW32__) && defined(__CRT_UUID_DECL)
__CRT_UUID_DECL(IPolicyConfigVista, 0x568b9108, 0x44bf, 0x40b4, 0x90, 0x06, 0x86, 0xaf, 0xe5, 0xb5, 0xa6, 0x20)
__CRT_UUID_DECL(CPolicyConfigVistaClient, 0x294935CE, 0xF637, 0x4E7C, 0xA4, 0x1B, 0xAB, 0x25, 0x54, 0x60, 0xB8, 0x62)
#endif
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------