Skip to content

Commit

Permalink
plugins/systemvolume: Fix linker error with mingw toolchain
Browse files Browse the repository at this point in the history
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>()'
  • Loading branch information
Biswa96 committed Oct 13, 2024
1 parent 3242a5b commit b40f2a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/systemvolume/PolicyConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,9 @@ interface IPolicyConfigVista : public IUnknown
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

// ----------------------------------------------------------------------------

0 comments on commit b40f2a7

Please sign in to comment.