From 061ce30163476354b555a5ede0062c94cc1dce6d Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 1 Feb 2024 01:14:56 -0600 Subject: [PATCH] Add IN6ADDR_V4MAPPEDPREFIX_INIT definition for MinGW --- win32.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/win32.c b/win32.c index 4282a678..dcc3922e 100644 --- a/win32.c +++ b/win32.c @@ -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)