The documentation for {$packrecords C} is incomple
Original Reporter info from Mantis: Thaddy
-
Reporter name: Thaddy de Koning
Original Reporter info from Mantis: Thaddy
- Reporter name: Thaddy de Koning
Description:
See https://forum.lazarus.freepascal.org/index.php/topic,49492.msg358895.html#msg358895
The documentation only states that {packrecords C} is for GNU cc, but as Sven pointed out on the forum it is actually for a platforms default compiler:
" it's for the target's default C alignment. For example on Windows if MSVC would use default alignment 4 and GNU C would use default alignment 1 then FPC would follow MSVC and not GNU C."
Steps to reproduce:
Examine https://www.freepascal.org/docs-html/current/prog/progsu60.html
Mantis conversion info:
- Mantis ID: 36962
- OS: All
- OS Build: All
- Build: 44876
- Platform: All
- Version: 3.3.1