MINGW-packages/mingw-w64-qt5-connectivity/0001-qtconnectivity-add-callback-attribute.patch
Biswapriyo Nath ec6dda0bd4 qt5-connectivity: Fix building in 32 bit environment
Once upon a time, the PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK was defined
in mingw-w64 incorrectly. It was fixed in this commit[1].

But, Qt5 worked around that issue. Now that workaround is not valid.
This change removes that workaround.

[1]: 427ab730f0
2023-09-12 02:05:40 +05:30

17 lines
594 B
Diff

--- a/src/bluetooth/qbluetoothservicediscoveryagent_win.cpp
+++ b/src/bluetooth/qbluetoothservicediscoveryagent_win.cpp
@@ -206,12 +206,7 @@
return sequence;
}
-#if defined(Q_CC_MINGW)
-# define SDP_CALLBACK
-#else
-# define SDP_CALLBACK QT_WIN_CALLBACK
-#endif
-static BOOL SDP_CALLBACK bluetoothSdpCallback(ULONG attributeId, LPBYTE valueStream, ULONG streamSize, LPVOID param)
+static BOOL QT_WIN_CALLBACK bluetoothSdpCallback(ULONG attributeId, LPBYTE valueStream, ULONG streamSize, LPVOID param)
{
QBluetoothServiceInfo *result = static_cast<QBluetoothServiceInfo*>(param);