System.Info.os is wrong

Bulat Ziganshin bulat.ziganshin at gmail.com
Tue Jul 18 04:12:00 EDT 2006


Hello Neil,

Tuesday, July 18, 2006, 1:38:33 AM, you wrote:

>>           let isWindows = "mingw" `isPrefixOf` System.Info.os
> Eeeeekkkkkk!!!!! Arrrrrggggghhhhh!!!!

how i can test this more correctly?

actually, code that uses Win32 package is anyway surrounded by
#ifdef, so the better question would be - what is best #ifdef what
guarantees catching all windows installations? currently the following
is used:

#if defined(mingw32_HOST_OS) || defined(__MINGW32__) || defined(_MSC_VER)



-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Libraries mailing list