delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/14/01:19:11

From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10108140514.AA13389@clio.rice.edu>
Subject: Re: Windows 2000 patch for utime.c
To: acottrel AT ihug DOT com DOT au (Andrew Cottrell)
Date: Tue, 14 Aug 2001 00:14:40 -0500 (CDT)
Cc: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii), djgpp-workers AT delorie DOT com
In-Reply-To: <00af01c12197$68628570$0a02a8c0@acceleron> from "Andrew Cottrell" at Aug 10, 2001 10:24:29 PM
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> +   if (_osmajor == 5 &&
> +       (_USE_LFN)    &&
> +       (_get_dos_version(1) == 0x532)) /* LFN and NT (or 2000 or XP) */
> +   {

I suggest we create a new global: extern short _os_true_version
so we can change this to:

      if (_USE_LFN && _os_true_version == 0x532)
      
I can see several places we will need this comparison in the future.
Maybe we make a define for 0x532 to be WINNT ...

Or store a byte to flag LFN and W2K combined?

But don't delay the utime patch on this basis!

- Raw text -


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