Re: Building Diffutils with MinGW

Paul Eggert <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Organization UCLA Computer Science Department
Message-ID <[email protected]>
On 05/04/2012 10:08 AM, Eli Zaretskii wrote:
> However, I'd prefer a solution that uses the mainstream
> configure script.  Any suggestions in that direction?

I'd like to partition the Microsoft-relevant stuff as much
as possible into the ms/* subdirectory.

> 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.
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.