From 360bef15b8d49563622e4d04ba65f2c79c84fc08 Mon Sep 17 00:00:00 2001 From: VA-GS Date: Thu, 3 Oct 2024 09:04:50 +0200 Subject: [PATCH] QOS_FLOWID and QOS_NON_ADAPTIVE_FLOW are not defined correctly by MinGW --- netcode.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/netcode.c b/netcode.c index 00690fa..ad38e9b 100755 --- a/netcode.c +++ b/netcode.c @@ -469,6 +469,13 @@ void netcode_socket_destroy( struct netcode_socket_t * socket ) #include #include #include + +#ifdef __MINGW32__ +typedef UINT32 QOS_FLOWID, *PQOS_FLOWID; +#ifndef QOS_NON_ADAPTIVE_FLOW +#define QOS_NON_ADAPTIVE_FLOW 0x00000002 +#endif // #ifndef QOS_NON_ADAPTIVE_FLOW +#endif // #ifdef __MINGW32__ #include #pragma comment( lib, "Qwave.lib" ) @@ -2550,7 +2557,7 @@ void netcode_default_client_config( struct netcode_client_config_t * config ) config->override_send_and_receive = 0; config->send_packet_override = NULL; config->receive_packet_override = NULL; -}; +} struct netcode_client_t { @@ -3753,7 +3760,7 @@ void netcode_default_server_config( struct netcode_server_config_t * config ) config->override_send_and_receive = 0; config->send_packet_override = NULL; config->receive_packet_override = NULL; -}; +} struct netcode_server_t {