Re: Building Diffutils with MinGW

Eli Zaretskii <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
> Date: Fri, 04 May 2012 11:39:51 -0700
> From: Paul Eggert <[email protected]>
> CC: [email protected]
> 
> > One possibility is to have a separate header, ms/mingw.h, which
> > src/system.h will include
> 
> Sure, something like that would be fine, though I'd rather
> put the relevant changes into the ms/* subdirectory.
> For example, we could create a file ms/system.h that does
> something like this:
> 
>   #include <mingw.h>
>   #include_next <system.h>
> 
> and then have the Microsoft build compile with -I../ms before
> -I.  Or, if something like that doesn't suffice, we could have the
> Microsoft build patch src/system.h first thing, put the
> patched version into ms/system.h, and then continue building
> with -I../ms.

That's okay, but then the configure script will have to add the
"-I../ms" switch to the GCC command-line arguments.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.