This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Checking for 95 vs. NT at runtime


On Wed, Dec 06, 2000 at 04:03:58PM -0800, Bruce Edge wrote:
>Can you tell from the cygwin API whether you're running under NT or 95?
>
>I saw the thread that contained:
>
>  if (! is_winnt)
>    {
>      ...your w9x specific code...
>    }
>
>The definition of is_winnt is used eg. in `cygwin_utils.c':
>
>#define is_winnt       (GetVersion() < 0x80000000)
>
>but GetVersion is undefined.

No, it isn't.  I don't know why you would think that this is undefined
but it is not.

You do have to include the header file which defines it, though, which
would probably be <windows.h>.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]