Add Macro for MinGW and fix GUID Macro Fix for Windows building
This commit is contained in:
parent
4c8c2b3d8f
commit
595e8d9a35
2 changed files with 6 additions and 0 deletions
|
@ -263,9 +263,11 @@ bool SystemvolumePlugin::sendSinkList()
|
|||
name = QString::fromWCharArray(deviceProperty.pwszVal);
|
||||
//PropVariantClear(&deviceProperty);
|
||||
|
||||
#ifndef __MINGW32__
|
||||
deviceProperties->GetValue(PKEY_Device_DeviceDesc, &deviceProperty);
|
||||
desc = QString::fromWCharArray(deviceProperty.pwszVal);
|
||||
//PropVariantClear(&deviceProperty);
|
||||
#endif
|
||||
|
||||
QJsonObject sinkObject;
|
||||
sinkObject.insert("name", name);
|
||||
|
|
|
@ -30,6 +30,10 @@
|
|||
#include <mmdeviceapi.h>
|
||||
#include <endpointvolume.h>
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#include <initguid.h>
|
||||
#endif
|
||||
|
||||
#define PACKET_TYPE_SYSTEMVOLUME QStringLiteral("kdeconnect.systemvolume")
|
||||
#define PACKET_TYPE_SYSTEMVOLUME_REQUEST QStringLiteral("kdeconnect.systemvolume.request")
|
||||
|
||||
|
|
Loading…
Reference in a new issue