From 0a3018d399b4ffea014c8bde23cff0b75191e55c Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Wed, 9 Nov 2016 13:16:57 -0500 Subject: [PATCH] binding since phobos blocks now --- cgi.d | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/cgi.d b/cgi.d index 2c84402..cb70c5f 100644 --- a/cgi.d +++ b/cgi.d @@ -3987,12 +3987,27 @@ version(cgi_with_websocket) { } + +version(Windows) +{ + version(CRuntime_DigitalMars) + { + extern(C) int setmode(int, int) nothrow @nogc; + } + else version(CRuntime_Microsoft) + { + extern(C) int _setmode(int, int) nothrow @nogc; + alias setmode = _setmode; + } + else static assert(0); +} + /* -Copyright: Adam D. Ruppe, 2008 - 2015 +Copyright: Adam D. Ruppe, 2008 - 2016 License: Boost License 1.0. Authors: Adam D. Ruppe - Copyright Adam D. Ruppe 2008 - 2015. + Copyright Adam D. Ruppe 2008 - 2016. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)