home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3822 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.2 KB

  1. Path: sparky!uunet!usc!sol.ctr.columbia.edu!ira.uka.de!news.belwue.de!news.uni-stuttgart.de!delos!ananke!ak
  2. From: ak@ananke.stgt.sub.org (Andreas Kaiser)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: emx/g++ os2.h 
  5. Distribution: world
  6. Message-ID: <712208423snx@ananke.stgt.sub.org>
  7. References: <711998759snx@jonas.bofe.sub.org>
  8. Date: Mon, 27 Jul 92 03:40:23 GMT
  9. Organization: ananke
  10. Lines: 19
  11.  
  12.  
  13. In article <711998759snx@jonas.bofe.sub.org> rommel@jonas.bofe.sub.org writes:
  14.  
  15.   > if the icc2gcc contribution by Johannes Martin is used (strongly
  16.   > recommended). But there is a bug in the bsedos.h, in the prototype for
  17.   > DosSetPriority at line 164. It uses the reserved C++ keyword "class"
  18.   > as a parameter template.
  19.  
  20. There is another bug in BSEDOS.H. The definitions of the bit-field
  21. structs FDATE and FTIME are done using UINT. IBM C doesn't care and
  22. makes it 16-bit anyway. GCC is more "clever" and makes it 32-bit since
  23. it is UINT, not USHORT. So all structs containing FDATE and FTIME have
  24. wrong offsets.
  25.  
  26. To fix it, simple change UINT to USHORT in FDATE and FTIME.
  27.  
  28. :::::::::::::::::::: subnet:  ak@ananke.stgt.sub.org
  29. :: Andreas Kaiser :: fidonet: 2:241/7220.9
  30. ::::::::::::::::::::
  31.