diff --git a/std/net/curl.d b/std/net/curl.d index a89b7599b..05f335ca5 100644 --- a/std/net/curl.d +++ b/std/net/curl.d @@ -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;