
18 Jul
2006
18 Jul
'06
8:21 a.m.
Hi,
let isWindows = "mingw" `isPrefixOf` System.Info.os
how i can test this more correctly? Unfortunately, you can't - which is my point.
#if defined(mingw32_HOST_OS) || defined(__MINGW32__) || defined(_MSC_VER)
#ifdef WIN32 should pick up most things I believe, certainly when compiled with MSVC, and I think also with Mingw, but you'd need to check. Thanks Neil