MINGW-packages/mingw-w64-qt5-static/0005-qtconnectivity-add-callback-attribute.patch
Markus Mützel 1dbdef4043 qt5-static: Fix building in 32 bit environment
Adopt patch from ec6dda0bd483fb45d37f2438723913eee7e9b803
2023-09-12 15:43:30 +02:00

17 lines
624 B
Diff

--- a/qtconnectivity/src/bluetooth/qbluetoothservicediscoveryagent_win.cpp
+++ b/qtconnectivity/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);