Skip to content

Commit

Permalink
fix for WS2019
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfriesen committed Jul 7, 2023
1 parent fdd71f0 commit 1656f40
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/xdppcw/inc/xdppcw.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,12 @@ typedef struct _XDP_PCW_LWF_TX_QUEUE {
#define STAT_ADD(_Stats, _Field, _Bias) (((_Stats)->_Field) += (_Bias))
#define STAT_SET(_Stats, _Field, _Value) (((_Stats)->_Field) = (_Value))

//
// Before including the autogenerated PCW helpers, set the PCW version macro to
// the version supported on all versions of Windows. The PCW_VERSION_2 adds
// features we don't use and requires WS2022 or higher.
//
#undef PCW_CURRENT_VERSION
#define PCW_CURRENT_VERSION PCW_VERSION_1

#include <xdppcwcounters.h>

0 comments on commit 1656f40

Please sign in to comment.