Skip to content

Commit 2c83711

Browse files
authored
Merge pull request #9693 from kareem-wolfssl/zd21012
Use MinGW XINET_PTON definition for 32-bit MinGW as well as 64-bit.
2 parents a17f68f + 549f106 commit 2c83711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)