home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
-
- 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
- ::::::::::::::::::::
-