From b40f2a785f8ed74f47108f279c9f2d7a7580bbf7 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Sun, 13 Oct 2024 15:38:59 +0000 Subject: [PATCH] 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()' ld.exe: systemvolumeplugin-win.cpp:373:(.text+0x11b6): undefined reference to `_GUID const& __mingw_uuidof()' --- plugins/systemvolume/PolicyConfig.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/systemvolume/PolicyConfig.h b/plugins/systemvolume/PolicyConfig.h index 8afe879c2..f0b21c12b 100644 --- a/plugins/systemvolume/PolicyConfig.h +++ b/plugins/systemvolume/PolicyConfig.h @@ -103,4 +103,9 @@ public: 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 + // ----------------------------------------------------------------------------