mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-08 14:50:50 +02:00
Use InetPtonA for XINET_PTON macro on Windows
Explicitly call the ANSI version of the InetPton function to avoid an incorrect cast to PCWSTR when the input string is a standard character pointer.
This commit is contained in:
+1
-1
@@ -1019,7 +1019,7 @@ WOLFSSL_API void wolfSSL_SetIOWriteFlags(WOLFSSL* ssl, int flags);
|
||||
#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))
|
||||
#define XINET_PTON(a,b,c) InetPtonA((a),(b),(c))
|
||||
#endif
|
||||
#elif defined(FREESCALE_MQX)
|
||||
#define XINET_PTON(a,b,c,d) inet_pton((a),(b),(c),(d))
|
||||
|
||||
Reference in New Issue
Block a user