Recent

Author Topic: FPC 3.2.2 OS/2 pmwin unit  (Read 325 times)

ghr

  • New member
  • *
  • Posts: 8
FPC 3.2.2 OS/2 pmwin unit
« on: December 29, 2022, 03:01:05 pm »
This unit has {$mode objfpc} on top which changes (in this case: messes up) integer sizes, and hence record sizes. E.g. MENUITEM, MSEMSG. Fix can be simple IMHO: move {$mode objfpc} down to where it is needed: just above last declaration before implementation.

PascalDragon

  • Hero Member
  • *****
  • Posts: 4963
  • Compiler Developer
Re: FPC 3.2.2 OS/2 pmwin unit
« Reply #1 on: December 29, 2022, 03:24:04 pm »
This unit has {$mode objfpc} on top which changes (in this case: messes up) integer sizes, and hence record sizes. E.g. MENUITEM, MSEMSG. Fix can be simple IMHO: move {$mode objfpc} down to where it is needed: just above last declaration before implementation.

A {$mode xxx} directive can not appear after the uses clause of the interface-section.

Regarding your issue with the pmwin unit: Please report a bug on the bug tracking system.

ghr

  • New member
  • *
  • Posts: 8
Re: FPC 3.2.2 OS/2 pmwin unit
« Reply #2 on: December 30, 2022, 09:18:31 pm »
Done; and noticed.

Tomas Hajny

  • Moderator
  • New Member
  • *****
  • Posts: 42
Re: FPC 3.2.2 OS/2 pmwin unit
« Reply #3 on: December 31, 2022, 12:57:46 pm »
Thanks for the report. I'll simply use System.integer in the respective declarations.

 

TinyPortal © 2005-2018