mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
Remove std.net.curl
for iOS derived platforms
libcurl is not shipped on iOS derived platforms.
This commit is contained in:
parent
6425af57b1
commit
ce8cfab0f8
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue