Remove std.net.curl for iOS derived platforms

libcurl is not shipped on iOS derived platforms.
This commit is contained in:
Jacob Carlborg 2020-01-18 13:49:32 +01:00
parent 6425af57b1
commit ce8cfab0f8

View file

@ -30,6 +30,8 @@ Windows x86 note:
A DMD compatible libcurl static library can be downloaded from the dlang.org
$(LINK2 http://downloads.dlang.org/other/index.html, download archive page).
This module is not available for iOS, tvOS or watchOS.
Compared to using libcurl directly this module allows simpler client code for
common uses, requires no unsafe operations, and integrates better with the rest
of the language. Futhermore it provides $(MREF_ALTTEXT range, std,range)
@ -164,6 +166,16 @@ import std.encoding : EncodingScheme;
import std.traits : isSomeChar;
import std.typecons : Flag, Yes, No, Tuple;
version (iOS)
version = iOSDerived;
else version (TVOS)
version = iOSDerived;
else version (WatchOS)
version = iOSDerived;
version (iOSDerived) {}
else:
version (StdUnittest)
{
import std.socket : Socket, SocketShutdown;