[darcs-devel] darcs patch: Unbreak MinGW build.
David Roundy
droundy at darcs.net
Sat Jul 30 04:34:58 PDT 2005
On Fri, Jul 29, 2005 at 04:31:43PM +0100, Ian Lynagh wrote:
> On Fri, Jul 29, 2005 at 08:35:06AM -0400, David Roundy wrote:
> > cat > config.hs <<EOF
> > #ifdef WIN32
> > main = putStr "windows"
> > #else
> > main = fail "not windows"
> > #endif
> > EOF
>
> Isn't this test used to decide whether to define WIN32?
Ooops! :)
> We ought to be able to use System.Info.os for the test, though.
> Apparently it's "mingw32" on Windows.
We could perhaps make the check a tad more robust by checking something
like:
map toLower System.Info.os `contains` "w32"
--
David Roundy
http://www.darcs.net
More information about the darcs-devel
mailing list