building cygwin

Sven Panne Sven.Panne at
Mon Dec 6 16:31:14 EST 2004

Simon Marlow wrote:
> [...] I doubt it'll be trivial - probably lots of 
>   #ifdef mingw32_TARGET_OS
> will need to change to 
>   #if defined(mingw32_TARGET_OS) || defined(cygwin_TARGET_OS)
> [...]

Hmmm, having some fragile OS-dependent #ifdefs is not the way to go.
While you are there, every

    #ifdef mingw32_TARGET_OS

which needs to be changed should be replaced by something feature-specific


and the autoconf stuff be extended accordingly. If you don't have M4
as your hobby, keeping

    #ifdef mingw32_TARGET_OS
    #undef HAVE_BLAH

in a single prominent place is much better than spreading this all
over the code


More information about the Glasgow-haskell-users mailing list