[Mono-osx] OSX vs Linux

Miguel de Icaza miguel at novell.com
Mon Dec 17 20:39:54 EST 2007


> Thanks, but your method IsUnix will come back true on OSX, which is what
> I was trying to prevent.  However someone on this list responded with
> the following which seems to work.  He's basically doing an output of
> all system vars and checking for "Darwin".   I know in Windows this is a
> real bad idea, but from what I've seen, there's no real way to tell
> IfOSX.

The routine that I posted had side effects (it sets the "style" variable
to a string identifying the OS), please review it.


More information about the Mono-osx mailing list