delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/30/03:16:15

From: giva AT bryggen DOT bgnett DOT no
Message-Id: <199707300714.HAA24590@bryggen.bgnett.no>
To: djgpp AT delorie DOT com
Date: Wed, 30 Jul 1997 09:14 MET
Subject: _osmajor/_osminor not set

 
I've notied that _osmajor/_osminor are not set in CRT before
calling main(). Is this intentional or simply an oversight?
Comparing with e.g. Borland (as we often do), these variables
are set there.
 
The fix would simply to insert "_get_dos_version(0)" in
"__crt1_startup()" (file \djgpp\src\src\libc\crt1.c).
 
Gisle V.
----------------

- Raw text -


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