--- qbluetoothservicediscoveryagent_win.cpp 2025-03-30 11:49:36.000000000 +0000 +++ qbluetoothservicediscoveryagent_win.cpp.new 2026-05-06 11:18:55.546127656 +0000 @@ -211,7 +211,7 @@ #else # define SDP_CALLBACK QT_WIN_CALLBACK #endif -static BOOL SDP_CALLBACK bluetoothSdpCallback(ULONG attributeId, LPBYTE valueStream, ULONG streamSize, LPVOID param) +static BOOL SDP_CALLBACK __attribute__((stdcall)) bluetoothSdpCallback(ULONG attributeId, LPBYTE valueStream, ULONG streamSize, LPVOID param) { QBluetoothServiceInfo *result = static_cast(param);