Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Wed, 6 Dec 2000 19:10:52 -0500
From: Christopher Faylor <cgf@redhat.com>
To: cygwin support <cygwin@cygwin.com>
Subject: Re: Checking for 95 vs. NT at runtime
Message-ID: <20001206191052.D11348@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin support <cygwin@cygwin.com>
References: <4.3.1.2.20001206142217.02101860@pop.ma.ultranet.com> <3A2E8EBA.5EEB6BA3@sattel.com> <4.3.1.2.20001206142217.02101860@pop.ma.ultranet.com> <4.3.1.2.20001206143908.02110758@pop.ma.ultranet.com> <3A2ED3EE.5E8243A4@sattel.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.11i
In-Reply-To: <3A2ED3EE.5E8243A4@sattel.com>; from bedge@sattel.com on Wed, Dec 06, 2000 at 04:03:58PM -0800

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

