From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 87551 invoked by alias); 24 Mar 2019 16:49:19 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 87039 invoked by uid 89); 24 Mar 2019 16:49:19 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mail-qk1-f196.google.com Received: from mail-qk1-f196.google.com (HELO mail-qk1-f196.google.com) (209.85.222.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 24 Mar 2019 16:49:17 +0000 Received: by mail-qk1-f196.google.com with SMTP id c20so3974349qkc.10 for ; Sun, 24 Mar 2019 09:49:17 -0700 (PDT) MIME-Version: 1.0 References: <20190324110603.2508-1-johannespfau@gmail.com> In-Reply-To: <20190324110603.2508-1-johannespfau@gmail.com> From: Iain Buclaw Date: Sun, 24 Mar 2019 17:12:00 -0000 Message-ID: Subject: Re: [PATCH 2/2, d] PR d/87799 Fix build on windows hosts To: Johannes Pfau Cc: gcc-patches Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-03/txt/msg01160.txt.bz2 On Sun, 24 Mar 2019 at 12:06, Johannes Pfau wrote: > > Merge with upstream DMD 74ac873be1862090b7ec0e4a876fd1b758520359. > This fixes various MinGW host build errors in filename.c. > > Additionally provide _mkdir in d-system.h as we do not > include the windows 'direct.h' header. > I've done the front-end merge, leaving just the following. > diff --git a/gcc/d/d-system.h b/gcc/d/d-system.h > index efece15f3bc..6c18b69d4df 100644 > --- a/gcc/d/d-system.h > +++ b/gcc/d/d-system.h > @@ -55,4 +55,10 @@ > #undef tolower > #define tolower(c) TOLOWER(c) > > +/* We do not include direct.h as it conflicts with system.h. */ > +#ifdef _WIN32 > +#undef _mkdir > +#define _mkdir(p) mkdir(p, 0) > +#endif > + Does this mean that we can remove MinGW from the special casing in the toplevel configure? See r265658. Iain.