Skip to content

Commit 549f106

Browse files
Use MinGW XINET_PTON definition for 32-bit MinGW as well as 64-bit.
1 parent c8867d8 commit 549f106

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfssl/wolfio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ WOLFSSL_API void wolfSSL_SetIOWriteFlags(WOLFSSL* ssl, int flags);
10031003
#define XINET_PTON(a,b,c) *(unsigned *)(c) = inet_addr((b))
10041004
#endif
10051005
#elif defined(USE_WINDOWS_API) /* Windows-friendly definition */
1006-
#if defined(__MINGW64__) && !defined(UNICODE)
1006+
#if (defined(__MINGW32__) || defined(__MINGW64__)) && !defined(UNICODE)
10071007
#define XINET_PTON(a,b,c) InetPton((a),(b),(c))
10081008
#else
10091009
#define XINET_PTON(a,b,c) InetPton((a),(PCWSTR)(b),(c))

0 commit comments

Comments
 (0)