Reuben Thomas wrote:
> > In the end I tried something a bit different, which was to reduce the
> > > number of gnulib modules I was using, as for the code I'm writing it 
> > > seemed
> > > reasonable to assume C99 and POSIX.1-2008.
> >
> > ?? That makes no sense to me. Either you want to assume POSIX, or you want
> > to support native Windows. You can't do both at the same time.
> >
> 
> I am supporting MSYS, mingw32 and mingw64; all of those work fine if I
> assume POSIX.

It may be that your program and its test suite exercises only the most common
cases of the POSIX APIs; then you may get the impression that "it works fine".

We have documented hundreds of deficiencies of mingw [1] w.r.t. the POSIX
standard. MSYS is surely worse, not better, than mingw. I recommend to use
the respective modules, for those POSIX APIs that you use.

Bruno

[1] https://www.gnu.org/software/gnulib/manual/gnulib.html






Reply via email to