Browse Source

* made mode field of file recs word sized on 8 and 16 bit systems

git-svn-id: trunk@37556 -
florian 7 years ago
parent
commit
4331904eb8
2 changed files with 8 additions and 0 deletions
  1. 4 0
      rtl/inc/filerec.inc
  2. 4 0
      rtl/inc/textrec.inc

+ 4 - 0
rtl/inc/filerec.inc

@@ -31,7 +31,11 @@ type
     using packed causes the compiler to handle arrays of text wrongly, see  see tw0754 e.g. on arm  }
     using packed causes the compiler to handle arrays of text wrongly, see  see tw0754 e.g. on arm  }
   FileRec = {$ifdef VER2_6} packed {$endif} Record
   FileRec = {$ifdef VER2_6} packed {$endif} Record
     Handle    : THandle;
     Handle    : THandle;
+{$if defined(CPU8) or defined(CPU16)}
+    Mode      : Word;
+{$else}
     Mode      : longint;
     Mode      : longint;
+{$endif}
     RecSize   : SizeInt;
     RecSize   : SizeInt;
     _private  : array[1..3 * SizeOf(SizeInt) + 5 * SizeOf (pointer)] of byte;
     _private  : array[1..3 * SizeOf(SizeInt) + 5 * SizeOf (pointer)] of byte;
     UserData  : array[1..32] of byte;
     UserData  : array[1..32] of byte;

+ 4 - 0
rtl/inc/textrec.inc

@@ -36,7 +36,11 @@ type
     using packed causes the compiler to handle arrays of text wrongly, see  see tw0754 e.g. on arm  }
     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
   TextRec = {$ifdef VER2_6} packed {$endif} Record
     Handle    : THandle;
     Handle    : THandle;
+{$if defined(CPU8) or defined(CPU16)}
+    Mode      : Word;
+{$else}
     Mode      : longint;
     Mode      : longint;
+{$endif}
     bufsize   : SizeInt;
     bufsize   : SizeInt;
     _private  : SizeInt;
     _private  : SizeInt;
     bufpos,
     bufpos,