[MinGW-w64]Build gdb/ctf.c failed

Eli Zaretskii eliz@gnu.org
Mon Mar 25 16:25:00 GMT 2013


> Date: Mon, 25 Mar 2013 14:30:15 +0100
> From: Kai Tietz <ktietz70@googlemail.com>
> Cc: asmwarrior@gmail.com, tromey@redhat.com, yao@codesourcery.com, 	gdb-patches@sourceware.org
> 
> >> The header io.h isn't a POSIX one, and therefore you should just
> >> expect what actual is documented by vendor (in msdn) for it and not
> >> what one implementation mightz does.
> >
> > MinGW's unistd.h includes io.h, and thus gets both mkdir and _mkdir.
> Yeah, and that's an implementation detail and IMHO even a bug, because
> msdn is documenting it differently ... but well that is in this case
> just nit-picking.
> > One could perhaps argue that this is or isn't a mistake, but given the
> > precedence, having a different arrangement in MinGW64 is unfortunate,
> > since it will mean more #ifdef'ing in the projects that want to
> > support both.
> 
> Yeah, therefore don't rely on implementation details.

MinGW was the only Free Software environment for Windows for many
years.  So its implementation details have already spread to many
projects.  That alone should make its implementation a kind of
de-facto standard, breaking which needs a very good reason.

But I feel that you disagree.



More information about the Gdb-patches mailing list