Browse Source

* another i8086 compilation fix for typinfo

git-svn-id: trunk@24602 -
nickysn 12 years ago
parent
commit
fe48700483
1 changed files with 5 additions and 3 deletions
  1. 5 3
      rtl/objpas/typinfo.pp

+ 5 - 3
rtl/objpas/typinfo.pp

@@ -1256,11 +1256,13 @@ end;
 
 
 Procedure SetObjectProp(Instance: TObject; PropInfo : PPropInfo;  Value: TObject);
 Procedure SetObjectProp(Instance: TObject; PropInfo : PPropInfo;  Value: TObject);
 begin
 begin
-{$ifdef cpu64}
+{$if defined(cpu64)}
   SetInt64Prop(Instance,PropInfo,Int64(Value));
   SetInt64Prop(Instance,PropInfo,Int64(Value));
-{$else cpu64}
+{$elseif defined(cpu32)}
   SetOrdProp(Instance,PropInfo,Integer(Value));
   SetOrdProp(Instance,PropInfo,Integer(Value));
-{$endif cpu64}
+{$elseif defined(cpu16)}
+  SetOrdProp(Instance,PropInfo,SmallInt(Value));
+{$endif}
 end;
 end;