浏览代码

* non-i386 fixes

peter 21 年之前
父节点
当前提交
fc53048e77
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 3 1
      fcl/db/dbase/Dbf_Common.inc
  2. 2 2
      fcl/db/dbase/Dbf_Common.pas

+ 3 - 1
fcl/db/dbase/Dbf_Common.inc

@@ -5,7 +5,9 @@
 
 
 // enables assembler routines, 486+ only
 // enables assembler routines, 486+ only
 
 
-{$define USE_ASSEMBLER_486_UP}
+{$ifdef cpui386}
+  {$define USE_ASSEMBLER_486_UP}
+{$endif cpui386}  
 
 
 // test compatibility
 // test compatibility
 
 

+ 2 - 2
fcl/db/dbase/Dbf_Common.pas

@@ -101,7 +101,7 @@ function GetFreeMemory: Integer;
 
 
 // OH 2000-11-15 dBase7 support. Swap Byte order for 4 and 8 Byte Integer
 // OH 2000-11-15 dBase7 support. Swap Byte order for 4 and 8 Byte Integer
 function SwapInt(const Value: Cardinal): Cardinal;
 function SwapInt(const Value: Cardinal): Cardinal;
-procedure SwapInt64(Value, Result: Pointer); pascal;
+procedure SwapInt64(Value, Result: Pointer); {$ifdef USE_ASSEMBLER_486_UP}pascal;{$endif}
 
 
 function TranslateString(FromCP, ToCP: Cardinal; Src, Dest: PChar; Length: Integer): Integer;
 function TranslateString(FromCP, ToCP: Cardinal; Src, Dest: PChar; Length: Integer): Integer;
 
 
@@ -425,7 +425,7 @@ begin
   PByteArray(@Result)[3] := PByteArray(@Value)[0];
   PByteArray(@Result)[3] := PByteArray(@Value)[0];
 end;
 end;
 
 
-procedure SwapInt64(Value, Result: Pointer); pascal;
+procedure SwapInt64(Value, Result: Pointer); 
 var
 var
   PtrResult: PByteArray;
   PtrResult: PByteArray;
   PtrSource: PByteArray;
   PtrSource: PByteArray;