浏览代码

Fix tw28713 for big endian CPUs

git-svn-id: trunk@48795 -
pierre 4 年之前
父节点
当前提交
f85d7d2591
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      tests/webtbs/tw28713.pp

+ 7 - 0
tests/webtbs/tw28713.pp

@@ -6,7 +6,14 @@ type
   TWordArray = array [0..1023]of Word;
 
   WordRec = packed record
+{$ifdef FPC}
+{$ifdef FPC_LITTLE_ENDIAN}
     LoByte,HiByte:Byte
+{$endif}
+{$ifdef FPC_BIG_ENDIAN}
+    HiByte,LoByte:Byte
+{$endif}
+{$endif}
   end;
 
 var