Skip to content

Commit

Permalink
Add IN6ADDR_V4MAPPEDPREFIX_INIT definition for MinGW
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Feb 1, 2024
1 parent c765728 commit 061ce30
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ typedef UINT32 *PQOS_FLOWID;
#define QOS_NON_ADAPTIVE_FLOW 0x00000002
#endif

// This is missing from MinGW headers
#ifndef IN6ADDR_V4MAPPEDPREFIX_INIT
#define IN6ADDR_V4MAPPEDPREFIX_INIT { \
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
0x00, 0x00, 0xff, 0xff, \
}
#endif

static enet_uint32 timeBase = 0;

#if !(defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_APP)
Expand Down

0 comments on commit 061ce30

Please sign in to comment.