From 244cff8d75333beb9fb376242332141efec2699d Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Sat, 4 Feb 2023 22:59:35 -0800 Subject: [PATCH] Fix build failure when using UNICODE / _UNICODE on Windows --- src/PlatformSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PlatformSocket.cpp b/src/PlatformSocket.cpp index ab113e32..10687df2 100644 --- a/src/PlatformSocket.cpp +++ b/src/PlatformSocket.cpp @@ -47,7 +47,7 @@ sockaddr_in createAddress(const std::string& address, int port) sockaddr_in a; a.sin_family = AF_INET; #ifdef _WIN32 - InetPton(AF_INET, address.c_str(), &(a.sin_addr)); // Note: Vista and higher only. + InetPtonA(AF_INET, address.c_str(), &(a.sin_addr)); // Note: Vista and higher only. #else ::inet_pton(AF_INET, address.c_str(), &(a.sin_addr)); #endif