From 04b3575c14dc7ad9971e19f153f3e3d712c1bdde Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Mon, 3 Jul 2017 00:39:41 +0200 Subject: [PATCH] Remove deprecated stdc import --- source/vibe/core/core.d | 2 +- source/vibe/core/net.d | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/vibe/core/core.d b/source/vibe/core/core.d index aa862a2..c5f506f 100644 --- a/source/vibe/core/core.d +++ b/source/vibe/core/core.d @@ -1264,7 +1264,7 @@ shared static this() static if (need_wsa) { logTrace("init winsock"); // initialize WinSock2 - import std.c.windows.winsock; + import core.sys.windows.winsock2; WSADATA data; WSAStartup(0x0202, &data); diff --git a/source/vibe/core/net.d b/source/vibe/core/net.d index aed3edb..7404f70 100644 --- a/source/vibe/core/net.d +++ b/source/vibe/core/net.d @@ -34,7 +34,7 @@ NetworkAddress resolveHost(string host, AddressFamily address_family = AddressFa NetworkAddress resolveHost(string host, ushort address_family, bool use_dns = true) { import std.socket : parseAddress; - version (Windows) import std.c.windows.winsock : sockaddr_in, sockaddr_in6; + version (Windows) import core.sys.windows.winsock2 : sockaddr_in, sockaddr_in6; else import core.sys.posix.netinet.in_ : sockaddr_in, sockaddr_in6; enforce(host.length > 0, "Host name must not be empty.");