|
@@ -25,7 +25,9 @@ const
|
|
|
type
|
|
|
TLineEndStr = string [3];
|
|
|
TextBuf = array[0..TextRecBufSize-1] of char;
|
|
|
- TextRec = Packed Record
|
|
|
+ { using packed makes the compiler to generate ugly code on some CPUs, further
|
|
|
+ using packed causes the compiler to handle arrays of text wrongly, see see tw0754 e.g. on arm }
|
|
|
+ TextRec = {$ifdef VER2_6} packed {$endif} Record
|
|
|
Handle : THandle;
|
|
|
Mode : longint;
|
|
|
bufsize : SizeInt;
|
|
@@ -44,11 +46,5 @@ type
|
|
|
{$ifdef FPC_HAS_CPSTRING}
|
|
|
CodePage : TSystemCodePage;
|
|
|
{$endif}
|
|
|
-{$ifndef VER2_6}
|
|
|
-{$ifdef CPU32}
|
|
|
- { keep textrec size divedable by 4 for proper alignment of arrays of text, see tw0754 e.g. on arm }
|
|
|
- Dummy : Word;
|
|
|
-{$endif CPU32}
|
|
|
-{$endif VER2_6}
|
|
|
End;
|
|
|
|