Skip to content

Commit

Permalink
Merge pull request #133 from VA-GS/main
Browse files Browse the repository at this point in the history
QOS_FLOWID and QOS_NON_ADAPTIVE_FLOW are not defined correctly by MinGW
  • Loading branch information
gafferongames authored Oct 3, 2024
2 parents d711b91 + 360bef1 commit d2b8141
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions netcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,13 @@ void netcode_socket_destroy( struct netcode_socket_t * socket )
#include <ws2ipdef.h>
#include <wininet.h>
#include <iphlpapi.h>

#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 <qos2.h>

#pragma comment( lib, "Qwave.lib" )
Expand Down Expand Up @@ -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
{
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit d2b8141

Please sign in to comment.