Fix Platform Depedendency in MsQuic.hpp
@@ -1013,7 +1013,9 @@ struct MsQuicAutoAcceptListener : public MsQuicListener {
const MsQuicConfiguration& Configuration;
MsQuicConnectionCallback* ConnectionHandler;
void* ConnectionContext;
+#ifdef CX_PLATFORM_TYPE
uint32_t AcceptedConnectionCount {0};
+#endif
MsQuicAutoAcceptListener(
_In_ const MsQuicRegistration& Registration,
@@ -1052,7 +1054,9 @@ private:
Connection->Handle = nullptr;
delete Connection;
} else {
+#ifdef CX_PLATFORM_TYPE
InterlockedIncrement((long*)&pThis->AcceptedConnectionCount);
+#endif
}
}
}
