Forum > Other OS

FPC 3.2.2 OS/2 pmwin unit

(1/1)

ghr:
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:

--- Quote from: ghr 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.

--- End quote ---

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:
Done; and noticed.

Tomas Hajny:
Thanks for the report. I'll simply use System.integer in the respective declarations.

Navigation

[0] Message Index

Go to full version