🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #512

emx/g++ os2.h

#512
From: Andreas Kaiser
Date: Mon, 27 Jul 1992 03:40
19 lines
1221 bytes
In article <711998759snx@jonas.bofe.sub.org> rommel@jonas.bofe.sub.org writes:

  > if the icc2gcc contribution by Johannes Martin is used (strongly
  > recommended). But there is a bug in the bsedos.h, in the prototype for
  > DosSetPriority at line 164. It uses the reserved C++ keyword "class"
  > as a parameter template.

There is another bug in BSEDOS.H. The definitions of the bit-field
structs FDATE and FTIME are done using UINT. IBM C doesn't care and
makes it 16-bit anyway. GCC is more "clever" and makes it 32-bit since
it is UINT, not USHORT. So all structs containing FDATE and FTIME have
wrong offsets.

To fix it, simple change UINT to USHORT in FDATE and FTIME.

:::::::::::::::::::: subnet:  ak@ananke.stgt.sub.org
:: Andreas Kaiser :: fidonet: 2:241/7220.9
::::::::::::::::::::
Technical Details
Message-ID: <712208423snx@ananke.stgt.sub.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!ira.uka.de!news.belwue.de!news.uni-stuttgart.de!delos!ananke!ak
References: <711998759snx@jonas.bofe.sub.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!ira.uka.de!news.belwue.de!news.uni-stuttgart.de!delos!ananke!ak
From: ak@ananke.stgt.sub.org (Andreas Kaiser)
Newsgroups: comp.os.os2.programmer
Subject: emx/g++ os2.h 
Distribution: world
Message-ID: <712208423snx@ananke.stgt.sub.org>
References: <711998759snx@jonas.bofe.sub.org>
Date: Mon, 27 Jul 92 03:40:23 GMT
Organization: ananke
Lines: 19