Skip to content

Commit

Permalink
Don't use VersionHelpers.h on UWP
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Feb 3, 2024
1 parent 04e2759 commit d3a323f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "enet/enet.h"
#include <windows.h>
#include <Mswsock.h>
#include <VersionHelpers.h>
#ifndef HAS_QOS_FLOWID
typedef UINT32 QOS_FLOWID;
#endif
Expand All @@ -24,14 +23,16 @@ static enet_uint32 timeBase = 0;

#if !(defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_APP)
# define HAS_QWAVE
# include <VersionHelpers.h>
#else
# define IsWindows10OrGreater() TRUE
#endif

#ifdef HAS_QWAVE

static HANDLE qosHandle = INVALID_HANDLE_VALUE;
static QOS_FLOWID qosFlowId;
static BOOL qosAddedFlow;
static BOOL enableEcn;

static HMODULE QwaveLibraryHandle;

Expand All @@ -41,7 +42,8 @@ BOOL (WINAPI *pfnQOSAddSocketToFlow)(HANDLE QOSHandle, SOCKET Socket, PSOCKADDR

#endif

LPFN_WSARECVMSG pfnWSARecvMsg;
static BOOL enableEcn;
static LPFN_WSARECVMSG pfnWSARecvMsg;


int
Expand Down

0 comments on commit d3a323f

Please sign in to comment.