Merge pull request #9693 from kareem-wolfssl/zd21012

Use MinGW XINET_PTON definition for 32-bit MinGW as well as 64-bit.
This commit is contained in:
David Garske
2026-01-22 15:24:31 -08:00
committed by GitHub
+1 -1
View File
@@ -1003,7 +1003,7 @@ WOLFSSL_API void wolfSSL_SetIOWriteFlags(WOLFSSL* ssl, int flags);
#define XINET_PTON(a,b,c) *(unsigned *)(c) = inet_addr((b))
#endif
#elif defined(USE_WINDOWS_API) /* Windows-friendly definition */
#if defined(__MINGW64__) && !defined(UNICODE)
#if (defined(__MINGW32__) || defined(__MINGW64__)) && !defined(UNICODE)
#define XINET_PTON(a,b,c) InetPton((a),(b),(c))
#else
#define XINET_PTON(a,b,c) InetPton((a),(PCWSTR)(b),(c))