mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-25 06:59:11 +08:00
Merge pull request #2317 from risa2000/patch-1
Fixed compiler error when building on Windows with #define UNICODE
This commit is contained in:
commit
a49456f7f2
@ -64,7 +64,7 @@ public:
|
|||||||
addr_.sin_family = PF_INET;
|
addr_.sin_family = PF_INET;
|
||||||
addr_.sin_port = htons(port);
|
addr_.sin_port = htons(port);
|
||||||
addr_.sin_addr.s_addr = INADDR_ANY;
|
addr_.sin_addr.s_addr = INADDR_ANY;
|
||||||
if (InetPton(PF_INET, TEXT(host.c_str()), &addr_.sin_addr.s_addr) != 1)
|
if (InetPtonA(PF_INET, host.c_str(), &addr_.sin_addr.s_addr) != 1)
|
||||||
{
|
{
|
||||||
int last_error = ::WSAGetLastError();
|
int last_error = ::WSAGetLastError();
|
||||||
::WSACleanup();
|
::WSACleanup();
|
||||||
|
Loading…
Reference in New Issue
Block a user