On Sun, 24 Mar 2019 at 12:06, Johannes Pfau <johannesp...@gmail.com> 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.