delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/08/16/07:01:25

From: iblank AT hildesheim DOT sgh-net DOT de (Ingo Blank)
Subject: Re: How to detect win9 vs NT?
16 Aug 1998 07:01:25 -0700 :
Message-ID: <35D5DB14.56E12ACB.cygnus.gnu-win32@hildesheim.sgh-net.de>
References: <763e6ab2 DOT 35d43288 AT aol DOT com>
Mime-Version: 1.0
To: N8TM AT aol DOT com
Cc: gnu-win32 AT cygnus DOT com


N8TM AT aol DOT com wrote:

> Where do I look to see the approved cygwin32 method for an application to
> determine whether it's running under NT or 95?

#include <windows.h>

#if defined (WIN32)
   #define IS_WIN32 TRUE
#else
   #define IS_WIN32 FALSE
#endif
#define IS_NT      IS_WIN32 && (BOOL)(GetVersion() < 0x80000000)
#define IS_WIN32S  IS_WIN32 && (BOOL)(!(IS_NT) &&
(LOBYTE(LOWORD(GetVersion()))<4))
#define IS_WIN95 (BOOL)(!(IS_NT) && !(IS_WIN32S)) && IS_WIN32

>

I hope that's what you needIngo


>  I'd like for libf2c at least
> to be aware so that, for instance, cpu_time() may be made to work under 9x.
> There may be others.
>
>  Some of the functions which come with B19.1 are broken unnecessarily under
> 95, such as clock().  That would seem to be a close analogy with
> system_clock(), which works.
> -
> For help on using this list (especially unsubscribing), send a message to
> "gnu-win32-request AT cygnus DOT com" with one line of text: "help".
>
> .



-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019