------ art_8020_21159632.1161712836458 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/24/06, James Edward Gray II <james / grayproductions.net> wrote: > > HighLine has some code like this: > > begin > require "Win32API" > > if # I'm looking for the line that goes right here (see below). > raise LoadError, "On Cygwin, not pure Windows." > end > > # assume we're on Windows here... > rescue LoadError > # assume we're on a Posix OS here... > end > > The problem is that Cygwin is using the Windows code and the Posix > code would be a better choice there. What's a test I can use to > detect Cygwin in this scenario? I /think/ RUBY_PLATFORM is different for cygwin than the pure windows version, but I don't have a cygwin install nearby to confirm. Perhaps unless RUBY_PLATFORM /mswin/ raise LoadError, "..." end would work? Cheers, /Nick ------ art_8020_21159632.1161712836458--